Companion

Functions

Link copied to clipboard
fun fromAxisAngle(axis: Float3, angle: Float): Quaternion

Construct a Quaternion from an axis and angle in degrees

Link copied to clipboard
fun fromEuler(d: Float3, order: RotationsOrder = RotationsOrder.ZYX): Quaternion

Construct a Quaternion from Euler angles using YPR around a specified order

fun fromEuler(yaw: Float = 0.0f, pitch: Float = 0.0f, roll: Float = 0.0f, order: RotationsOrder = RotationsOrder.ZYX): Quaternion

Construct a Quaternion from Euler yaw, pitch, roll around a specified order.