class Graphene::Euler

Overview

Describe a rotation using Euler angles.

The contents of the #graphene_::euler_t structure are private and should never be accessed directly.

Defined in:

lib/gi-crystal/src/auto/graphene-1.0/euler.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

def self.new(data : LibGraphene::Euler, transfer : GICrystal::Transfer) #

def self.new(angles : Graphene::Vec3? = nil, order : Graphene::EulerOrder? = nil) #

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def alpha : Float32 #

def angles : Graphene::Vec3 #

def angles=(value : Graphene::Vec3) #

def beta : Float32 #

def equal(b : Graphene::Euler) : Bool #

def free : Nil #

def gamma : Float32 #

def init(x : Float32, y : Float32, z : Float32) : Graphene::Euler #

def init_from_euler(src : Graphene::Euler?) : Graphene::Euler #

def init_from_matrix(m : Graphene::Matrix?, order : Graphene::EulerOrder) : Graphene::Euler #

def init_from_quaternion(q : Graphene::Quaternion?, order : Graphene::EulerOrder) : Graphene::Euler #

def init_from_radians(x : Float32, y : Float32, z : Float32, order : Graphene::EulerOrder) : Graphene::Euler #

def init_from_vec3(v : Graphene::Vec3?, order : Graphene::EulerOrder) : Graphene::Euler #

def init_with_order(x : Float32, y : Float32, z : Float32, order : Graphene::EulerOrder) : Graphene::Euler #

def order : Graphene::EulerOrder #

def order=(value : Graphene::EulerOrder) #

def reorder(order : Graphene::EulerOrder) : Graphene::Euler #

def to_matrix : Graphene::Matrix #

def to_quaternion : Graphene::Quaternion #

def to_unsafe #

def to_vec3 : Graphene::Vec3 #

def x : Float32 #

def y : Float32 #

def z : Float32 #