linearly v0.32.0Docs


linearly v0.32.0 / quat / fromEuler

Function: fromEuler()

fromEuler(deg, order): number[]

Creates a quaternion from the given euler angle x, y, z using the provided intrinsic order for the conversion.

Parameters

deg: vec3

Angles to rotate around X, Y, Z axes in degree.

order: AngleOrder = Common.DEFAULT_ANGLE_ORDER

Intrinsic order for conversion, default is zyx.

Returns

number[]

Defined in

src/quat.ts:404open in new window