Euler

Describe a rotation using Euler angles.

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

Members

Functions

equal
bool equal(graphene.euler.Euler b)

Checks if two #graphene_euler_t are equal.

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.

getGamma
float getGamma()

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

getOrder
graphene.types.EulerOrder 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.

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.

initFromEuler
graphene.euler.Euler initFromEuler(graphene.euler.Euler src)

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

initFromMatrix
graphene.euler.Euler initFromMatrix(graphene.matrix.Matrix m, graphene.types.EulerOrder order)

Initializes a #graphene_euler_t using the given rotation matrix.

initFromQuaternion
graphene.euler.Euler initFromQuaternion(graphene.quaternion.Quaternion q, graphene.types.EulerOrder order)

Initializes a #graphene_euler_t using the given normalized quaternion.

initFromRadians
graphene.euler.Euler initFromRadians(float x, float y, float z, graphene.types.EulerOrder order)

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

initFromVec3
graphene.euler.Euler initFromVec3(graphene.vec3.Vec3 v, graphene.types.EulerOrder order)

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

initWithOrder
graphene.euler.Euler initWithOrder(float x, float y, float z, graphene.types.EulerOrder order)

Initializes a #graphene_euler_t with the given angles and order.

init_
graphene.euler.Euler init_(float x, float y, float z)

Initializes a #graphene_euler_t using the given angles.

reorder
void reorder(graphene.types.EulerOrder order, graphene.euler.Euler res)

Reorders a #graphene_euler_t using order.

toMatrix
void toMatrix(graphene.matrix.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(graphene.quaternion.Quaternion res)

Converts a #graphene_euler_t into a #graphene_quaternion_t.

toVec3
void toVec3(graphene.vec3.Vec3 res)

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

Static functions

alloc
graphene.euler.Euler alloc()

Allocates a new #graphene_euler_t.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.