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

def self.new(data : LibGraphene::Quaternion, _transfer : GICrystal::Transfer) #

def self.new(x : Float32? = nil, y : Float32? = nil, z : Float32? = nil, w : Float32? = 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 #


def dot(b : Graphene::Quaternion) : Float32 #

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

def free : Nil #

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

def init_from_angle_vec3(angle : Float32, axis : Graphene::Vec3) : Graphene::Quaternion #

def init_from_angles(deg_x : Float32, deg_y : Float32, deg_z : Float32) : Graphene::Quaternion #

def init_from_euler(e : Graphene::Euler) : Graphene::Quaternion #

def init_from_matrix(m : Graphene::Matrix) : Graphene::Quaternion #

def init_from_quaternion(src : Graphene::Quaternion) : Graphene::Quaternion #

def init_from_radians(rad_x : Float32, rad_y : Float32, rad_z : Float32) : Graphene::Quaternion #

def init_from_vec4(src : Graphene::Vec4) : Graphene::Quaternion #

def init_identity : Graphene::Quaternion #

def invert : Graphene::Quaternion #


def normalize : Graphene::Quaternion #

def scale(factor : Float32) : Graphene::Quaternion #

def slerp(b : Graphene::Quaternion, factor : Float32) : Graphene::Quaternion #

def to_angle_vec3(angle : Float32) : Graphene::Vec3 #

def to_angles : Nil #

def to_matrix : Graphene::Matrix #

def to_radians : Nil #

def to_vec4 : Graphene::Vec4 #

def w(*args, **options) #

def w(*args, **options, &) #

def w=(arg) #

def x(*args, **options) #

def x(*args, **options, &) #

def x=(arg) #

def y(*args, **options) #

def y(*args, **options, &) #

def y=(arg) #

def z(*args, **options) #

def z(*args, **options, &) #

def z=(arg) #