Companion

object Companion

Functions

fromAngles
Link copied to clipboard
fun fromAngles(pitch: Double, roll: Double, yaw: Double): Quaternion

Construct Quaternion from a set of degrees

fromAnglesRadian
Link copied to clipboard
fun fromAnglesRadian(pitch: Double, roll: Double, yaw: Double): Quaternion

Construct Quaternion from a set of arc lengths

fromAxes
Link copied to clipboard
fun fromAxes(x: Vector3, y: Vector3, z: Vector3): Quaternion

Construct Quaternion from axes

fromLookAt
Link copied to clipboard
fun fromLookAt(from: Vector3, to: Vector3, up: Vector3 = Vector3.UNIT_Y): Quaternion

Construct Quaternion using from, to and up vectors

fromMatrix
Link copied to clipboard
fun fromMatrix(m: Matrix33): Quaternion

Construct Quaternion from Matrix33

Properties

IDENTITY
Link copied to clipboard
val IDENTITY: Quaternion
ZERO
Link copied to clipboard
val ZERO: Quaternion