Quaternion

constructor()

Construct Quaternion and set to Identity


constructor(x: Float, y: Float, z: Float, w: Float)

Construct Quaternion and set each value. The Quaternion will be normalized during construction


constructor(q: Quaternion)

Construct Quaternion using values from another Quaternion


constructor(axis: Vector3, angle: Float)

Construct Quaternion using an axis/angle to define the rotation

Parameters

axis

Sets rotation direction

angle

Angle size in degrees


constructor(eulerAngles: Vector3)

Construct Quaternion based on eulerAngles.

Parameters

eulerAngles

- the angle in degrees for each axis.

See also