class Mittsu::Quaternion

Defined in:

mittsu/math/quaternion.cr

Constant Summary

EPS = 0.000001

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(x = 0.0, y = 0.0, z = 0.0, w = 1.0) #

[View source]

Class Method Detail

def self.slerp(qa, qb, qm, t) #

[View source]

Instance Method Detail

def ==(quaternion) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def clone #

[View source]
def conjugate #

[View source]
def copy(quaternion) #

[View source]
def dot(v) #

[View source]
def from_array(array, offset = 0) #

[View source]
def inverse #

[View source]
def length #

[View source]
def length_sq #

[View source]
def multiply(q) #

[View source]
def multiply_quaternions(a, b) #

[View source]
def normalize #

[View source]
def on_change(&callback) #

[View source]
def on_change_callback #

[View source]
def set(x, y, z, w) #

[View source]
def set_from_axis_angle(axis, angle) #

[View source]
def set_from_euler(euler, update = true) #

[View source]
def set_from_rotation_matrix(m) #

[View source]
def set_from_unit_vectors(v_from, v_to) #

[View source]
def slerp(qb, t) #

[View source]
def to_array(array = [] of Float64, offset = 0) #

[View source]
def w : Float64 #

[View source]
def w=(w) #

[View source]
def x : Float64 #

[View source]
def x=(x) #

[View source]
def y : Float64 #

[View source]
def y=(y) #

[View source]
def z : Float64 #

[View source]
def z=(z) #

[View source]