home
 
 index of namespace default
 
 index of project tkmath
 
 index of module tkmath

Class tkmath.Quaterniond


SynopsisThis class represents a single precision quaternion of the form a+ib+jc+kd.

  Base classes:
  Methods:
Method add
add quaternion v to this instance
Signature
add(Quaterniondv)
Arguments
Quaterniondvquaternion value to add

 
 top of page
Method conjMul
Multiply this conjugated instance with quaternion v (Grassmann product)
Signature
conjMul(Quaterniondv)
Arguments
Quaterniondvquaternion value to multiply

 
 top of page
Method dot
Calculate dot product (inner product) of this instance and quaternion v
Signature
dot(Quaterniondv)
 :Double
Arguments
Quaterniondvquaternion value to multiply
Returns
Doubledot product of quaternions

 
 top of page
Method getAbs
Return the absolute value of this instance
Signature
getAbs():Double
Returns
Doublelength of quaternion

 
 top of page
Method getAbsSqr
Return the squared length of this instance
Signature
getAbsSqr():Double
Returns
Doublelength2 of this instance

 
 top of page
Method getAngle
Calculate quaternion angle
Signature
getAngle():Double
Returns
Doublequaternion angle

 
 top of page
Method getI
Get imaginery i value
Signature
getI():Double
Returns
Doubleimaginery i value

 
 top of page
Method getJ
Get imaginery j value
Signature
getJ():Double
Returns
Doubleimaginery j value

 
 top of page
Method getK
Get imaginery k value
Signature
getK():Double
Returns
Double
Description
qreturn imaginery k value

 
 top of page
Method getMatrix4d
Get 4x4 matrix representation of quaternion
Signature
getMatrix4d():Matrix4d
Returns
Matrix4dmatrix representation of quaternion

 
 top of page
Method getPureUnit
Returns pure unit quaternion from instance
Signature
getPureUnit():Quaterniond
Returns
Quaterniondpure unit quaternion

 
 top of page
Method getR
Get Real value
Signature
getR():Double
Returns
Doublereal value

 
 top of page
Method getRadius
Calculate quaternion radius (_getAbs)
Signature
getRadius():Double
Returns
Doublelength of quaternion

 
 top of page
Method getString
Get string representation of quaternion number (a+ib+jc+kd)
Signature
getString():String
Returns
Stringstring representation (a+ib+jc+kd)

 
 top of page
Method getV
Get vector value
Signature
getV():Vector3d
Returns
Vector3dvector part

 
 top of page
Method init
Init quaternion to a+ib+jc+kd
Signature
init(Doublea,
  Doubleb,
  Doublec,
  Doubled 
  )  
Arguments
Doubleanew real value
Doublebnew i value
Doublecnew j value
Doublednew k value

 
 top of page
Method initf
Init quaternion to a+ib+jc+kd
Signature
initf(floata,
  floatb,
  floatc,
  floatd 
  )  
Arguments
floatanew real value
floatbnew i value
floatcnew j value
floatdnew k value

 
 top of page
Method invert
Calculate the reciprocal value 1/q
Signature
invert()

 
 top of page
Method mul
Multiply this instance with quaternion v (Grassmann product)
Signature
mul(Quaterniondv)
Arguments
Quaterniondvquaternion value to multiply

 
 top of page
Method mulConj
Multiply this instance with conjugated quaternion v (Grassmann product)
Signature
mulConj(Quaterniondv)
Arguments
Quaterniondvconjugated quaternion value to multiply

 
 top of page
Method mulf
Multiply this instance with scalar v
Signature
mulf(Doublev)
Arguments
Doublevscalar value to multiply

 
 top of page
Method New
Init quaternion to a+ib+jc+kd and return new instance
Signature
New(Doublea,
  Doubleb,
  Doublec,
  Doubled 
  )  
 :Quaterniond
Arguments
Doubleanew real value
Doublebnew i value
Doublecnew j value
Doublednew k value
Returns

 
 top of page
Method outer
Calculate the outer product of this instance and quaternion v
Signature
Arguments
Quaterniondvquaternion value to multiply
Returns
Quaterniondouter product of quaternions

 
 top of page
Method setAngle
Set new quaternion angle
Signature
setAngle(Doublea)
Arguments
Doubleanew angle

 
 top of page
Method setI
Set imaginery i part to a
Signature
setI(Doublea)
Arguments
Doubleanew value for imaginery i value

 
 top of page
Method setJ
Set imaginery j part to a
Signature
setJ(Doublea)
Arguments
Doubleanew value for imaginery j value

 
 top of page
Method setK
Set imagnery k part to a
Signature
setK(Doublea)
Arguments
Doubleanew value for imaginery k value

 
 top of page
Method setPureUnit
Set new pure unit vector of quaternion
Signature
setPureUnit(Quaterniondv)
Arguments
Quaterniondvpure unit quaternion with real part zero and length 1

 
 top of page
Method setR
Set real part to a
Signature
setR(Doublea)
Arguments
Doubleanew value for real value

 
 top of page
Method setRadius
Set new quaternion radius
Signature
setRadius(Doublea)
Arguments
Doubleanew length

 
 top of page
Method setV
Set vector part to v
Signature
setV(Vector3dv)
Arguments
Vector3dvnew value for vector part

 
 top of page
Method sub
substract quaternion v from this instance
Signature
sub(Quaterniondv)
Arguments
Quaterniondvquaternion value to substract

 
 top of page
Method unit
Set length of quaternion to 1
Signature
unit()

 
 top of page
Method unitScale
Set length of quaternion to s
Signature
unitScale(Doubles)
Arguments
Doublesnew length

 
 top of page
 

Project Modules:tkmath 
Project Classes:Complexd , Complexf , Math , Matrix , Matrix2d , Matrix2f , Matrix3d , Matrix3f , Matrix4d , Matrix4f , Quaterniond , Quaternionf , Vector2d , Vector2f , Vector3d , Vector3f , Vector4d , Vector4f 
Project Functions:absd , absf , acoscd , acoscf , acosd , acosf , acoshcd , acoshcf , acoshd , acoshf , asincd , asincf , asind , asinf , asinhcd , asinhcf , asinhd , asinhf , atan2d , atan2f , atancd , atancf , atand , atanf , atanhcd , atanhcf , atanhd , atanhf , ceild , ceilf , complexd , complexf , complexfPolar , complexfPolar , coscd , coscf , cosd , cosf , coshcd , coshcf , coshd , coshf , exp10d , exp10f , exp2d , exp2f , expcd , expcf , expd , expf , floord , floorf , hypotd , hypotf , log10d , log10f , log2d , log2f , logcd , logcf , logd , logf , matrix2d , matrix2f , matrix3d , matrix3f , matrix4d , matrix4f , modd , modf , powcd , powcf , powd , powf , quaterniond , quaternionf , relCmpd , relCmpf , relErrCmpd , relErrCmpf , roundd , roundf , sincd , sincf , sind , sinf , sinhcd , sinhcf , sinhd , sinhf , sqrtcd , sqrtcf , sqrtd , sqrtf , tancf , tancf , tand , tanf , tanhcd , tanhcf , tanhd , tanhf , vector2d , vector2f , vector3d , vector3f , vector4d , vector4f 
All Namespaces:default , ui 
All Projects:core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit 


auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54