init_from_radians


Description:

public unowned Quaternion? init_from_radians (float rad_x, float rad_y, float rad_z)

Initializes a Quaternion using the values of the Euler angles on each axis.

See also: init_from_euler

Parameters:

this

a Quaternion

rad_x

rotation angle on the X axis (yaw), in radians

rad_y

rotation angle on the Y axis (pitch), in radians

rad_z

rotation angle on the Z axis (roll), in radians

Returns:

the initialized quaternion