class Graphene::Euler
- Graphene::Euler
- Reference
- Object
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.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibGraphene::Euler, transfer : GICrystal::Transfer)
- .new(angles : Graphene::Vec3 | Nil = nil, order : Graphene::EulerOrder | Nil = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#==(other : self) : Bool
Returns
true
if this reference is the same as other. - #alpha : Float32
- #angles : Graphene::Vec3
- #angles=(value : Graphene::Vec3)
- #beta : Float32
- #equal(b : Graphene::Euler) : Bool
- #free : Nil
- #gamma : Float32
- #init(x : Float32, y : Float32, z : Float32) : Graphene::Euler
- #init_from_euler(src : Graphene::Euler | Nil) : Graphene::Euler
- #init_from_matrix(m : Graphene::Matrix | Nil, order : Graphene::EulerOrder) : Graphene::Euler
- #init_from_quaternion(q : Graphene::Quaternion | Nil, order : Graphene::EulerOrder) : Graphene::Euler
- #init_from_radians(x : Float32, y : Float32, z : Float32, order : Graphene::EulerOrder) : Graphene::Euler
- #init_from_vec3(v : Graphene::Vec3 | Nil, order : Graphene::EulerOrder) : Graphene::Euler
- #init_with_order(x : Float32, y : Float32, z : Float32, order : Graphene::EulerOrder) : Graphene::Euler
- #order : Graphene::EulerOrder
- #order=(value : Graphene::EulerOrder)
- #reorder(order : Graphene::EulerOrder) : Graphene::Euler
- #to_matrix : Graphene::Matrix
- #to_quaternion : Graphene::Quaternion
- #to_unsafe
- #to_vec3 : Graphene::Vec3
- #x : Float32
- #y : Float32
- #z : Float32
Constructor Detail
Class Method Detail
Returns the type id (GType) registered in GLib type system.
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
def init_from_quaternion(q : Graphene::Quaternion | Nil, order : Graphene::EulerOrder) : Graphene::Euler
#
def init_from_radians(x : Float32, y : Float32, z : Float32, order : Graphene::EulerOrder) : Graphene::Euler
#
def init_with_order(x : Float32, y : Float32, z : Float32, order : Graphene::EulerOrder) : Graphene::Euler
#