default
tkmath
tkmath
tkmath.Quaterniond
add(Quaterniond v)
- add quaternion v to this instance
conjMul(Quaterniond v)
- Multiply this conjugated instance with quaternion v (Grassmann product)
dot(Quaterniond v) : Double
- Calculate dot product (inner product) of this instance and quaternion v
getAbs() : Double
- Return the absolute value of this instance
getAbsSqr() : Double
- Return the squared length of this instance
getAngle() : Double
- Calculate quaternion angle
getI() : Double
- Get imaginery i value
getJ() : Double
- Get imaginery j value
getK() : Double
- Get imaginery k value
getMatrix4d() : Matrix4d
- Get 4x4 matrix representation of quaternion
getPureUnit() : Quaterniond
- Returns pure unit quaternion from instance
getR() : Double
- Get Real value
getRadius() : Double
- Calculate quaternion radius (_getAbs)
getString() : String
- Get string representation of quaternion number (a+ib+jc+kd)
getV() : Vector3d
- Get vector value
init(Double a, b, c, d)
- Init quaternion to a+ib+jc+kd
initf(float a, b, c, d)
- Init quaternion to a+ib+jc+kd
invert()
- Calculate the reciprocal value 1/q
mul(Quaterniond v)
- Multiply this instance with quaternion v (Grassmann product)
mulConj(Quaterniond v)
- Multiply this instance with conjugated quaternion v (Grassmann product)
mulf(Double v)
- Multiply this instance with scalar v
New(Double a, b, c, d) : Quaterniond
- Init quaternion to a+ib+jc+kd and return new instance
outer(Quaterniond v) : Quaterniond
- Calculate the outer product of this instance and quaternion v
setAngle(Double a)
- Set new quaternion angle
setI(Double a)
- Set imaginery i part to a
setJ(Double a)
- Set imaginery j part to a
setK(Double a)
- Set imagnery k part to a
setPureUnit(Quaterniond v)
- Set new pure unit vector of quaternion
setR(Double a)
- Set real part to a
setRadius(Double a)
- Set new quaternion radius
setV(Vector3d v)
- Set vector part to v
sub(Quaterniond v)
- substract quaternion v from this instance
unit()
- Set length of quaternion to 1
unitScale(Double 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 getK | |||||
Get imaginery k value | |||||
Signature | |||||
| |||||
Returns | |||||
Description | |||||
qreturn imaginery k value |
Method getMatrix4d | |||||
Get 4x4 matrix representation of quaternion | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getPureUnit | |||||
Returns pure unit quaternion from instance | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getRadius | |||||
Calculate quaternion radius (_getAbs) | |||||
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 initf | |||||||||||||||||||||||||
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 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 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