Euler

class Euler(pointer: <Error class: unknown class><<Error class: unknown class>>)

Describe a rotation using Euler angles.

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

Skipped during bindings generation

  • field angles: Record field angles is private

  • field order: Record field order is private

Since

1.2

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

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

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

Link copied to clipboard
fun getBeta(): Float

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

Link copied to clipboard

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(): Float

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

Link copied to clipboard
fun getY(): Float

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

Link copied to clipboard
fun getZ(): Float

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

Link copied to clipboard
fun init(x: Float, y: Float, z: Float): 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: Float, y: Float, z: Float, 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: Float, y: Float, z: Float, 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.