default
tkmath
tkmath
tkmath.Quaternionf
add(Quaternionf v)
- add quaternion v to this instance
conjMul(Quaternionf v)
- Multiply this conjugated instance with quaternion v (Grassmann product)
dot(Quaternionf v) : float
- Calculate dot product (inner product) of this instance and quaternion v
getAbs() : float
- Return the absolute value of this instance
getAbsSqr() : float
- Return the squared length of this instance
getAngle() : float
- Calculate quaternion angle
getI() : float
- Get imaginery i value
getJ() : float
- Get imaginery j value
getK() : float
- Get imaginery k value
getMatrix4f() : Matrix4f
- Get 4x4 matrix representation of quaternion
getPureUnit() : Quaternionf
- Returns pure unit quaternion from instance
getR() : float
- Get Real value
getRadius() : float
- Calculate quaternion radius (_getAbs)
getRotateMatrix4f() : Matrix4f
- Get 4x4 rotation matrix representation of quaternion q*conj q
getString() : String
- Get string representation of quaternion number (a+ib+jc+kd)
getV() : Vector3f
- Get vector value
init(float a, b, c, d)
- Init quaternion to a+ib+jc+kd
invert()
- Calculate the reciprocal value 1/q
mul(Quaternionf v)
- Multiply this instance with quaternion v (Grassmann product)
mulConj(Quaternionf v)
- Multiply this instance with conjugated quaternion v (Grassmann product)
mulf(float v)
- Multiply this instance with scalar v
New(float a, b, c, d) : Quaternionf
- Init quaternion to a+ib+jc+kd and return new instance
outer(Quaternionf v) : Quaternionf
- Calculate the outer product of this instance and quaternion v
setAngle(float a)
- Set new quaternion angle
setI(float a)
- Set imaginery i part to a
setJ(float a)
- Set imaginery j part to a
setK(float a)
- Set imagnery k part to a
setPureUnit(Quaternionf v)
- Set new pure unit vector of quaternion
setR(float a)
- Set real part to a
setRadius(float a)
- Set new quaternion radius
setV(Vector3f v)
- Set vector part to v
sub(Quaternionf v)
- substract quaternion v from this instance
unit()
- Set length of quaternion to 1
unitScale(float s)
- Set length of quaternion to sMethod add | |||||
add quaternion v to this instance | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method conjMul | |||||
Multiply this conjugated instance with quaternion v (Grassmann product) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method dot | ||||||||||
Calculate dot product (inner product) of this instance and quaternion v | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method getAbs | |||||
Return the absolute value of this instance | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAbsSqr | |||||
Return the squared length of this instance | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAngle | |||||
Calculate quaternion angle | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getI | |||||
Get imaginery i value | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getJ | |||||
Get imaginery j value | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getK | |||||
Get imaginery k value | |||||
Signature | |||||
| |||||
Returns | |||||
| |||||
Description | |||||
qreturn imaginery k value |
Method getMatrix4f | |||||
Get 4x4 matrix representation of quaternion | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getPureUnit | |||||
Returns pure unit quaternion from instance | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getR | |||||
Get Real value | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getRadius | |||||
Calculate quaternion radius (_getAbs) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getRotateMatrix4f | |||||
Get 4x4 rotation matrix representation of quaternion q*conj q | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString | |||||
Get string representation of quaternion number (a+ib+jc+kd) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method init | |||||||||||||||||||||||||
Init quaternion to a+ib+jc+kd | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method invert | |||
Calculate the reciprocal value 1/q | |||
Signature | |||
|
Method mul | |||||
Multiply this instance with quaternion v (Grassmann product) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulConj | |||||
Multiply this instance with conjugated quaternion v (Grassmann product) | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method mulf | |||||
Multiply this instance with scalar v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method New | ||||||||||||||||||||||||||||||
Init quaternion to a+ib+jc+kd and return new instance | ||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Returns | ||||||||||||||||||||||||||||||
Method outer | ||||||||||
Calculate the outer product of this instance and quaternion v | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method setAngle | |||||
Set new quaternion angle | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setI | |||||
Set imaginery i part to a | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setJ | |||||
Set imaginery j part to a | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setK | |||||
Set imagnery k part to a | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setPureUnit | |||||
Set new pure unit vector of quaternion | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setR | |||||
Set real part to a | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setRadius | |||||
Set new quaternion radius | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setV | |||||
Set vector part to v | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method sub | |||||
substract quaternion v from this instance | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method unit | |||
Set length of quaternion to 1 | |||
Signature | |||
|
Method unitScale | |||||
Set length of quaternion to s | |||||
Signature | |||||
| |||||
Arguments | |||||
|
auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54