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

helix / quatFromTo

Function: quatFromTo() โ€‹

quatFromTo(from, to): Quat

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

The shortest rotation from direction from to to. Neither may be zero. Opposite directions have no unique answer, so a perpendicular axis is picked.

Parameters โ€‹

from โ€‹

Vec3

to โ€‹

Vec3

Returns โ€‹

Quat

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