dlsl.quaternion

dlsl.quternion

Public Imports

dlsl.vector
public import dlsl.vector;

Members

Aliases

conjugate
alias conjugate = invert
Undocumented in source.
quat
alias quat = Quaternion!(float)

Pre-defined quaternion of type float.

Functions

invert
Q invert(Q q)

Returns an inverted copy of the current vector

isFinite
bool isFinite(Q q)

Returns true if all values are not nan and finite, otherwise false.

pitch
Q.valueType pitch(Q q)

Returns the pitch

roll
Q.valueType roll(Q q)

Returns the roll

toMat3
auto toMat3(Q q)
Undocumented in source. Be warned that the author may not have intended to support it.
toMat3x3
auto toMat3x3(Q q)
Undocumented in source. Be warned that the author may not have intended to support it.
toMat3x4
auto toMat3x4(Q q)
Undocumented in source. Be warned that the author may not have intended to support it.
toMat4
auto toMat4(Q q)
Undocumented in source. Be warned that the author may not have intended to support it.
toMat4x3
auto toMat4x3(Q q)
Undocumented in source. Be warned that the author may not have intended to support it.
toMat4x4
auto toMat4x4(Q q)
Undocumented in source. Be warned that the author may not have intended to support it.
yaw
Q.valueType yaw(Q q)

Returns the yaw

Structs

Quaternion
struct Quaternion(type)

Base template for all quaternion-types.

Templates

isQuaternion
template isQuaternion(T)

If T is a quaternion, this evaluates to true, otherwise false.

Meta

Authors

Peter Particle ( based on gl3n by David Herberth )

License

MIT

Note: All methods marked with pure are weakly pure since, they all access an instance member. All static methods are strongly pure.