Companion

Functions

Link copied to clipboard
fun fromAxisAngle(axis: Vector3f, angleRadians: Float): Rotation3f

Right-handed axis-angle rotation. The axis must be finite and nonzero; the angle is in radians.

Link copied to clipboard

Reject zero and non-finite quaternions; finite nonzero components are normalized.

Link copied to clipboard

Shortest rotation between finite nonzero directions, with Double intermediates and Float storage. Magnitudes are ignored. Parallel directions return identity; opposite directions choose the source crossed with its least aligned coordinate axis (ties X, then Y, then Z), as in Rotation3d.

Link copied to clipboard
Link copied to clipboard
fun rotationX(angleRadians: Float): Rotation3f
Link copied to clipboard
fun rotationY(angleRadians: Float): Rotation3f
Link copied to clipboard
fun rotationZ(angleRadians: Float): Rotation3f