fromRotationVector

fun fromRotationVector(angleRad: Float, x: Float, y: Float, z: Float): Quaternion

Creates a quaternion from a rotation vector and an angle.

Return

The quaternion representing the rotation.

Parameters

angleRad

The angle of rotation in radians.

x

The x-component of the rotation vector.

y

The y-component of the rotation vector.

z

The z-component of the rotation vector.