linearly v0.32.0Docs


linearly v0.32.0 / quat / setAxes

Function: setAxes()

setAxes(view, right, up): quat

Sets the specified quaternion with values corresponding to the given axes. Each axis is a vec3 and is expected to be unit length and perpendicular to all other specified axes.

Parameters

view: vec3

the vector representing the viewing direction

right: vec3

the vector representing the local “right” direction

up: vec3

the vector representing the local “up” direction

Returns

quat

Defined in

src/quat.ts:622open in new window