struct Graphene::Quaternion
- Graphene::Quaternion
- Struct
- Value
- Object
Overview
A quaternion.
The contents of the #graphene_::quaternion_t structure are private and should never be accessed directly.
Defined in:
lib/gi-crystal/src/auto/graphene-1.0/quaternion.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibGraphene::Quaternion, _transfer : GICrystal::Transfer)
- .new(x : Float32? = nil, y : Float32? = nil, z : Float32? = nil, w : Float32? = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
- #==(other : self) : Bool
- #add(b : Graphene::Quaternion) : Graphene::Quaternion
- #dot(b : Graphene::Quaternion) : Float32
- #equal(b : Graphene::Quaternion) : Bool
- #free : Nil
- #init(x : Float32, y : Float32, z : Float32, w : Float32) : Graphene::Quaternion
- #init_from_angle_vec3(angle : Float32, axis : Graphene::Vec3) : Graphene::Quaternion
- #init_from_angles(deg_x : Float32, deg_y : Float32, deg_z : Float32) : Graphene::Quaternion
- #init_from_euler(e : Graphene::Euler) : Graphene::Quaternion
- #init_from_matrix(m : Graphene::Matrix) : Graphene::Quaternion
- #init_from_quaternion(src : Graphene::Quaternion) : Graphene::Quaternion
- #init_from_radians(rad_x : Float32, rad_y : Float32, rad_z : Float32) : Graphene::Quaternion
- #init_from_vec4(src : Graphene::Vec4) : Graphene::Quaternion
- #init_identity : Graphene::Quaternion
- #invert : Graphene::Quaternion
- #multiply(b : Graphene::Quaternion) : Graphene::Quaternion
- #normalize : Graphene::Quaternion
- #scale(factor : Float32) : Graphene::Quaternion
- #slerp(b : Graphene::Quaternion, factor : Float32) : Graphene::Quaternion
- #to_angle_vec3(angle : Float32) : Graphene::Vec3
- #to_angles : Nil
- #to_matrix : Graphene::Matrix
- #to_radians : Nil
- #to_vec4 : Graphene::Vec4
- #w(*args, **options)
- #w(*args, **options, &)
- #w=(arg)
- #x(*args, **options)
- #x(*args, **options, &)
- #x=(arg)
- #y(*args, **options)
- #y(*args, **options, &)
- #y=(arg)
- #z(*args, **options)
- #z(*args, **options, &)
- #z=(arg)