class Mittsu::Euler

Defined in:

mittsu/math/euler.cr

Constant Summary

DefaultOrder = "XYZ"
RotationOrders = ["XYZ", "YZX", "ZXY", "XZY", "YXZ", "ZYX"]

Constructors

Instance Method Summary

Constructor Detail

def self.new(x = 0.0, y = 0.0, z = 0.0, order = DefaultOrder) #

[View source]

Instance Method Detail

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

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


[View source]
def clone #

[View source]
def copy(euler) #

[View source]
def from_array(array) #

[View source]
def on_change(&callback) #

[View source]
def on_change_callback #

[View source]
def order : String #

[View source]
def order=(order : String) #

[View source]
def reorder(new_order) #

[View source]
def set(x, y, z, order = nil) #

[View source]
def set_from_quaternion(q, order, update = true) #

[View source]
def set_from_rotation_matrix(m, order, update = true) #

[View source]
def set_from_vector3(v, order) #

[View source]
def to_a(array = [] of Float64 | String, offset = 0) #

[View source]
def to_vector3(optional_result = nil) #

[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]