Quaternion.toEuler

Returns a Vector with euler's angles

struct Quaternion(T = floatt)
nothrow @nogc pure const
Vector!(T, 3)
toEuler
()
if (
__traits(isFloating, T)
)

Return Value

Type: Vector!(T, 3)

Vector with Euler angles of rotation in radians

TODO: Improve using code from here to avoid requiring pre-normalize the quaternion http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToEuler/

Meta