Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / rotateVec

Function: rotateVec() โ€‹

rotateVec(v, q): Vec3

Defined in: core/values/transform-math.ts:110

Rotate a vector by a quaternion: v' = v + 2w(uxv) + 2ux(uxv), u = q.xyz.

Parameters โ€‹

v โ€‹

Vec3

q โ€‹

Quat

Returns โ€‹

Vec3

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.