Companion

object Companion

Functions

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

Construct a Quaternion from an axis and angle in degrees

fromEuler
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.

Sources

common source
Link copied to clipboard