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) #

[View source]
def self.new(data : LibGraphene::Euler, transfer : GICrystal::Transfer) #

[View source]
def self.new(angles : Graphene::Vec3 | Nil = nil, order : Graphene::EulerOrder | Nil = nil) #

[View source]

Class Method Detail

def self.g_type : UInt64 #

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


[View source]

Instance Method Detail

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

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


[View source]
def alpha : Float32 #

[View source]
def angles : Graphene::Vec3 #

[View source]
def angles=(value : Graphene::Vec3) #

[View source]
def beta : Float32 #

[View source]
def equal(b : Graphene::Euler) : Bool #

[View source]
def free : Nil #

[View source]
def gamma : Float32 #

[View source]
def init(x : Float32, y : Float32, z : Float32) : Graphene::Euler #

[View source]
def init_from_euler(src : Graphene::Euler | Nil) : Graphene::Euler #

[View source]
def init_from_matrix(m : Graphene::Matrix | Nil, order : Graphene::EulerOrder) : Graphene::Euler #

[View source]
def init_from_quaternion(q : Graphene::Quaternion | Nil, order : Graphene::EulerOrder) : Graphene::Euler #

[View source]
def init_from_radians(x : Float32, y : Float32, z : Float32, order : Graphene::EulerOrder) : Graphene::Euler #

[View source]
def init_from_vec3(v : Graphene::Vec3 | Nil, order : Graphene::EulerOrder) : Graphene::Euler #

[View source]
def init_with_order(x : Float32, y : Float32, z : Float32, order : Graphene::EulerOrder) : Graphene::Euler #

[View source]
def order : Graphene::EulerOrder #

[View source]
def order=(value : Graphene::EulerOrder) #

[View source]
def reorder(order : Graphene::EulerOrder) : Graphene::Euler #

[View source]
def to_matrix : Graphene::Matrix #

[View source]
def to_quaternion : Graphene::Quaternion #

[View source]
def to_unsafe #

[View source]
def to_vec3 : Graphene::Vec3 #

[View source]
def x : Float32 #

[View source]
def y : Float32 #

[View source]
def z : Float32 #

[View source]