FromEuler

function

FromEuler(_x, _y, _z)

Description

Initializes the quaternion using euler angles.

Arguments

Name Type Description
_x Real The rotation around the X axis (in degrees).
_y Real The rotation around the Y axis (in degrees).
_z Real The rotation around the Z axis (in degrees).

Returns

Struct.BBMOD_Quaternion Returns self.

Note

The order of rotations is YXZ, same as in the matrix_build function.

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on May 16, 2022 using GMDoc.