Companion

object Companion

Functions

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

Construct Quaternion from a set of degrees

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

Construct Quaternion from a set of arc lengths

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

Construct Quaternion from axes

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

Construct Quaternion using from, to and up vectors

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

Construct Quaternion from Matrix33

Properties

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

Sources

Link copied to clipboard