Quaternion

The Quaternion class represents a quaternion. Quaternions are used to describe rotation in 3D space.

Function Description
inverse()

Inverts the quaternion.

toEuler()

Calculates yaw, pitch, and roll Euler angles (in degrees).


inverse()

Inverts the quaternion.

Returns

boolean true if the inversion was successful, false if not

↑ Back to top


toEuler()

Calculates yaw, pitch, and roll Euler angles (in degrees).

Returns

Vec3 the {x, y, z} yaw, pitch, and roll Euler angles

↑ Back to top

Did you find this page useful?

Please give it a rating:

Please provide some feedback!

This is very helpful to us.