Quaternion

constructor(v: FloatArray)

Creates a Quaternion from a FloatArray.

Parameters

v

The FloatArray containing the quaternion components x, y, z, w.


constructor(o: Quaternion)

Creates a copy of the provided Quaternion.

Parameters

o

The Quaternion to copy.


constructor(x: Float = 0.0f, y: Float = 0.0f, z: Float = 0.0f, w: Float = 0.0f)

Creates a Quaternion with the specified components.

Parameters

x

The x-component of the quaternion. Default is 0.

y

The y-component of the quaternion. Default is 0.

z

The z-component of the quaternion. Default is 0.

w

The w-component of the quaternion. Default is 0.