- invert
void invert()
- make_identity
void make_identity()
Makes the current quaternion an identity quaternion.
- normalize
void normalize()
Normalizes the current quaternion.
- normalized
Quaternion normalized()
Returns a normalized copy of the current quaternion.
- opBinary
Quaternion opBinary(Quaternion inp)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Quaternion opBinary(Quaternion inp)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Vector!(qt, 3) opBinary(Vector!(qt, 3) inp)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Quaternion opBinary(qt inp)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinaryRight
auto opBinaryRight(T inp)
Undocumented in source. Be warned that the author may not have intended to support it.
- opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
- opCmp
int opCmp(Quaternion qua)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(Quaternion qu)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(Quaternion inp)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(Quaternion inp)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(qt inp)
Undocumented in source. Be warned that the author may not have intended to support it.
- rotate_axis
Quaternion rotate_axis(real alpha, Vector!(qt, 3) axis)
Rotates the current quaternion around an axis and returns this.
- rotate_euler
Quaternion rotate_euler(real heading, real attitude, real bank)
Applies an euler rotation to the current quaternion and returns this.
- rotatex
Quaternion rotatex(real alpha)
Rotates the current quaternion around the x-axis and returns this.
- rotatey
Quaternion rotatey(real alpha)
Rotates the current quaternion around the y-axis and returns this.
- rotatez
Quaternion rotatez(real alpha)
Rotates the current quaternion around the z-axis and returns this.
- to_axis_angle
vec3 to_axis_angle()
Returns the quaternion as a vec3 (axis / angle representation).
- to_matrix
Matrix!(qt, rows, cols) to_matrix()
Returns the quaternion as matrix.
- as_string
string as_string [@property getter]
Returns the current vector formatted as string, useful for printing the quaternion.
- get_
qt get_ [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- identity
Quaternion identity [@property getter]
Returns an identity quaternion (w=1, x=0, y=0, z=0).
- inverse
Quaternion inverse [@property getter]
Returns an inverted copy of the current quaternion.
- isFinite
bool isFinite [@property getter]
Returns true if all values are not nan and finite, otherwise false.
- magnitude
real magnitude [@property getter]
Returns the magnitude of the quaternion.
- magnitude_squared
real magnitude_squared [@property getter]
Returns the squared magnitude of the quaternion.
- pitch
real pitch [@property getter]
- roll
real roll [@property getter]
- set_
qt set_ [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- value_ptr
auto value_ptr [@property getter]
Returns a pointer to the quaternion in memory, it starts with the w coordinate.
- yaw
real yaw [@property getter]
Base template for all quaternion-types.