Class (GI Struct)

Graphene-1.0GrapheneEulerSince 1.2

Describe a rotation using Euler angles.

The contents of the Graphene.Euler structure are private and should never be accessed directly.

1.2

Index

Constructors

Properties

$gtype: GType<Euler>

Methods

  • Retrieves the first component of the Euler angle vector, depending on the order of rotation.

    See also: graphene_euler_get_x()

    Returns number

    the first component of the Euler angle vector, in radians

  • Retrieves the second component of the Euler angle vector, depending on the order of rotation.

    See also: graphene_euler_get_y()

    Returns number

    the second component of the Euler angle vector, in radians

  • Retrieves the third component of the Euler angle vector, depending on the order of rotation.

    See also: graphene_euler_get_z()

    Returns number

    the third component of the Euler angle vector, in radians

  • Converts a Graphene.Euler into a transformation matrix expressing the extrinsic composition of rotations described by the Euler angles.

    The rotations are applied over the reference frame axes in the order associated with the Graphene.Euler; for instance, if the order used to initialize e is Graphene.EulerOrder.XYZ:

    • the first rotation moves the body around the X axis with an angle φ
    • the second rotation moves the body around the Y axis with an angle of ϑ
    • the third rotation moves the body around the Z axis with an angle of ψ

    The rotation sign convention is right-handed, to preserve compatibility between Euler-based, quaternion-based, and angle-axis-based rotations.

    Returns Graphene.Matrix