linearly v0.32.0Docs


linearly v0.32.0 / quat / fromAxisAngle

Function: fromAxisAngle()

fromAxisAngle(axis, deg): quat

Sets a quat from the given angle and rotation axis, then returns it.

Parameters

axis: vec3

the axis around which to rotate

deg: number

the angle in degrees

Returns

quat

Defined in

src/quat.ts:80open in new window