Euler

class Euler(val grapheneEulerPointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Describe a rotation using Euler angles.

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

Since

1.2

Constructors

Link copied to clipboard
constructor()

Allocate a new Euler.

constructor(scope: <Error class: unknown class>)

Allocate a new Euler using the provided AutofreeScope.

constructor(grapheneEulerPointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val grapheneEulerPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Checks if two #graphene_euler_t are equal.

Link copied to clipboard
fun free()

Frees the resources allocated by graphene_euler_alloc().

Link copied to clipboard
fun getAlpha(): <Error class: unknown class>

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

Link copied to clipboard
fun getBeta(): <Error class: unknown class>

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

Link copied to clipboard
fun getGamma(): <Error class: unknown class>

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

Link copied to clipboard

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.

Link copied to clipboard
fun getX(): <Error class: unknown class>

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

Link copied to clipboard
fun getY(): <Error class: unknown class>

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

Link copied to clipboard
fun getZ(): <Error class: unknown class>

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

Link copied to clipboard
fun init(x: <Error class: unknown class>, y: <Error class: unknown class>, z: <Error class: unknown class>): Euler

Initializes a #graphene_euler_t using the given angles.

Link copied to clipboard
fun initFromEuler(src: Euler? = null): Euler

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

Link copied to clipboard
fun initFromMatrix(m: Matrix? = null, order: EulerOrder): Euler

Initializes a #graphene_euler_t using the given rotation matrix.

Link copied to clipboard

Initializes a #graphene_euler_t using the given normalized quaternion.

Link copied to clipboard
fun initFromRadians(x: <Error class: unknown class>, y: <Error class: unknown class>, z: <Error class: unknown class>, order: EulerOrder): Euler

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

Link copied to clipboard
fun initFromVec3(v: Vec3? = null, order: EulerOrder): Euler

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

Link copied to clipboard
fun initWithOrder(x: <Error class: unknown class>, y: <Error class: unknown class>, z: <Error class: unknown class>, order: EulerOrder): Euler

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

Link copied to clipboard
fun reorder(order: EulerOrder, res: Euler)

Reorders a #graphene_euler_t using @order.

Link copied to clipboard
fun toMatrix(res: Matrix)

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

Link copied to clipboard

Converts a #graphene_euler_t into a #graphene_quaternion_t.

Link copied to clipboard
fun toVec3(res: Vec3)

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