Skip to content

quatRotate

quatRotate(q, v): Vec3

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

Rotate v by the unit quaternion q. A non-unit q scales the result instead of rotating it, so normalise — or compose only unit quaternions with quatMul, which keeps them unit.

Quat

Vec3

Vec3