Skip to content

quatFromAxisAngle

quatFromAxisAngle(axis, angle): Quat

Defined in: src/modules/math/quat.ts:50

Rotation of angle radians about axis, right-handed: curl the fingers of your right hand around the axis and the thumb points along the rotation.

The axis is normalised for you, so a non-unit axis is fine. A zero-length axis has no direction to rotate about, so it yields the identity.

Vec3

number

Quat