struct Graphene::Quaternion

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.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::Quaternion, _transfer : GICrystal::Transfer) #

[View source]
def self.new(x : Float32 | Nil = nil, y : Float32 | Nil = nil, z : Float32 | Nil = nil, w : Float32 | 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 #

[View source]

[View source]
def dot(b : Graphene::Quaternion) : Float32 #

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

[View source]
def free : Nil #

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

[View source]
def init_from_angle_vec3(angle : Float32, axis : Graphene::Vec3) : Graphene::Quaternion #

[View source]
def init_from_angles(deg_x : Float32, deg_y : Float32, deg_z : Float32) : Graphene::Quaternion #

[View source]
def init_from_euler(e : Graphene::Euler) : Graphene::Quaternion #

[View source]
def init_from_matrix(m : Graphene::Matrix) : Graphene::Quaternion #

[View source]
def init_from_quaternion(src : Graphene::Quaternion) : Graphene::Quaternion #

[View source]
def init_from_radians(rad_x : Float32, rad_y : Float32, rad_z : Float32) : Graphene::Quaternion #

[View source]
def init_from_vec4(src : Graphene::Vec4) : Graphene::Quaternion #

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

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

[View source]

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

[View source]
def scale(factor : Float32) : Graphene::Quaternion #

[View source]
def slerp(b : Graphene::Quaternion, factor : Float32) : Graphene::Quaternion #

[View source]
def to_angle_vec3(angle : Float32) : Graphene::Vec3 #

[View source]
def to_angles : Nil #

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

[View source]
def to_radians : Nil #

[View source]
def to_vec4 : Graphene::Vec4 #

[View source]
def w(*args, **options) #

[View source]
def w(*args, **options, &) #

[View source]
def w=(arg) #

[View source]
def x(*args, **options) #

[View source]
def x(*args, **options, &) #

[View source]
def x=(arg) #

[View source]
def y(*args, **options) #

[View source]
def y(*args, **options, &) #

[View source]
def y=(arg) #

[View source]
def z(*args, **options) #

[View source]
def z(*args, **options, &) #

[View source]
def z=(arg) #

[View source]