DualQuaternion

Base template for all quaternion-types.

Constructors

this
this(valueType rx, valueType ry, valueType rz, valueType rw, valueType dx, valueType dy, valueType dz, valueType dw)

Construct from eight values of type $( I valueType ) first four the real part, rotation quaternion with last value being the w value last four being the dual, translation part

this
this(Quaternion!valueType r, Quaternion!valueType d)

Construct from two Quaternions

this
this(Quaternion!valueType r, Vector!(valueType, 3) v)
Undocumented in source.

Members

Aliases

quaternionType
alias quaternionType = Quaternion!(type)
Undocumented in source.
valueType
alias valueType = type
Undocumented in source.

Functions

opBinary
DualQuaternion opBinary(DualQuaternion dq)

//////////// //////////// DualQuternion add or subtract DUalQuaternion

opBinary
DualQuaternion opBinary(DualQuaternion dq)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
DualQuaternion opBinary(valueType s)
Undocumented in source. Be warned that the author may not have intended to support it.
ptr
auto ptr()

Returns the pointer to the stored values as OpenGL requires it. Note this will return a pointer to a $( RED column - major ) matrix, $( RED this is the OpneGL convention and expected in programs via Uniforms or UBOs ).

rotation
Quaternion!valueType rotation()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
char[] toString(char[] buffer)

Returns the current matrix formatted as flat string.

translation
Vector!(valueType, 3) translation()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

identity
DualQuaternion identity()

Returns an identity vector ( x=0, y=0, z=0, w=1 ).

Unions

__anonymous
union __anonymous
Undocumented in source.

Parameters

type

all values get stored as this type

Meta