Euler

Describe a rotation using Euler angles.

The contents of the #graphene_euler_t structure are private and should never be accessed directly.

Constructors

this
this(graphene_euler_t* graphene_euler, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Allocates a new #graphene_euler_t.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

equal
bool equal(Euler b)

Checks if two #graphene_euler_t are equal.

free
void free()

Frees the resources allocated by graphene_euler_alloc().

getAlpha
float getAlpha()

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

getBeta
float getBeta()

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

getEulerStruct
graphene_euler_t* getEulerStruct(bool transferOwnership)

Get the main Gtk struct

getGamma
float getGamma()

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

getOrder
graphene_euler_order_t getOrder()

Retrieves the order used to apply the rotations described in the #graphene_euler_t structure, when converting to and from other structures, like #graphene_quaternion_t and #graphene_matrix_t.

getStruct
void* getStruct()

the main Gtk struct as a void*

getX
float getX()

Retrieves the rotation angle on the X axis, in degrees.

getY
float getY()

Retrieves the rotation angle on the Y axis, in degrees.

getZ
float getZ()

Retrieves the rotation angle on the Z axis, in degrees.

init
Euler init(float x, float y, float z)

Initializes a #graphene_euler_t using the given angles.

initFromEuler
Euler initFromEuler(Euler src)

Initializes a #graphene_euler_t using the angles and order of another #graphene_euler_t.

initFromMatrix
Euler initFromMatrix(Matrix m, graphene_euler_order_t order)

Initializes a #graphene_euler_t using the given rotation matrix.

initFromQuaternion
Euler initFromQuaternion(Quaternion q, graphene_euler_order_t order)

Initializes a #graphene_euler_t using the given normalized quaternion.

initFromRadians
Euler initFromRadians(float x, float y, float z, graphene_euler_order_t order)

Initializes a #graphene_euler_t using the given angles and order of rotation.

initFromVec3
Euler initFromVec3(Vec3 v, graphene_euler_order_t order)

Initializes a #graphene_euler_t using the angles contained in a #graphene_vec3_t.

initWithOrder
Euler initWithOrder(float x, float y, float z, graphene_euler_order_t order)

Initializes a #graphene_euler_t with the given angles and @order.

reorder
void reorder(graphene_euler_order_t order, Euler res)

Reorders a #graphene_euler_t using @order.

toMatrix
void toMatrix(Matrix res)

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

toQuaternion
void toQuaternion(Quaternion res)

Converts a #graphene_euler_t into a #graphene_quaternion_t.

toVec3
void toVec3(Vec3 res)

Retrieves the angles of a #graphene_euler_t and initializes a #graphene_vec3_t with them.

Static functions

getType
GType getType()

Variables

graphene_euler
graphene_euler_t* graphene_euler;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta