init_from_angles


Description:

public unowned Quaternion? init_from_angles (float deg_x, float deg_y, float deg_z)

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

See also: init_from_euler

Parameters:

this

a Quaternion

deg_x

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

deg_y

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

deg_z

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

Returns:

the initialized quaternion




2022 vala-language.org