linearly v0.32.0Docs


linearly v0.32.0 / vec3 / transformQuat

Function: transformQuat()

transformQuat(a, q): vec3

Transforms the vec3 with a quat Can also be used for dual quaternions. (Multiply it with the real part)

Parameters

a: vec3

the vector to transform

q: quat

quaternion to transform with

Returns

vec3

Shorthands

Defined in

src/vec3.ts:695open in new window