Euler
Object Hierarchy:
Description:
[ CCode ( cname = "graphene_euler_t" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "graphene_euler_get_type ()" ) ]
[ Version ( since = "1.2" ) ]
public struct Euler
Describe a rotation using Euler angles.
The contents of the Euler structure are private and should never be accessed directly.
Content:
Methods:
- public bool equal (Euler b)
Checks if two Euler are equal.
- public float get_alpha ()
Retrieves the first component of the Euler angle vector, depending on
the order of rotation.
- public float get_beta ()
Retrieves the second component of the Euler angle vector, depending on
the order of rotation.
- public float get_gamma ()
Retrieves the third component of the Euler angle vector, depending on
the order of rotation.
- public EulerOrder get_order ()
Retrieves the order used to apply the rotations described in the
Euler structure, when converting to and from other structures, like
Quaternion and Matrix.
- public float get_x ()
Retrieves the rotation angle on the X axis, in degrees.
- public float get_y ()
Retrieves the rotation angle on the Y axis, in degrees.
- public float get_z ()
Retrieves the rotation angle on the Z axis, in degrees.
- public unowned Euler? init (float x, float y, float z)
Initializes a Euler using the given
angles.
- public unowned Euler? init_from_euler (Euler? src)
Initializes a Euler using the angles and
order of another Euler.
- public unowned Euler? init_from_matrix (Matrix? m, EulerOrder order)
Initializes a Euler using the given
rotation matrix.
- public unowned Euler? init_from_quaternion (Quaternion? q, EulerOrder order)
Initializes a Euler using the given
normalized quaternion.
- public unowned Euler? init_from_radians (float x, float y, float z, EulerOrder order)
Initializes a Euler using the given angles
and order of rotation.
- public unowned Euler? init_from_vec3 (Vec3? v, EulerOrder order)
Initializes a Euler using the angles
contained in a Vec3.
- public unowned Euler? init_with_order (float x, float y, float z, EulerOrder order)
Initializes a Euler with the given angles
and order.
- public Euler reorder (EulerOrder order)
Reorders a Euler using order.
- public Matrix to_matrix ()
Converts a Euler into a transformation
matrix expressing the extrinsic composition of rotations described by the Euler angles.
- public Quaternion to_quaternion ()
- public Vec3 to_vec3 ()
Retrieves the angles of a Euler and
initializes a Vec3 with them.