class

Mittsu::Quaternion

Inherits Reference < Object

Constants

EPS = 0.000001

Constructors

new(x = 0.0, y = 0.0, z = 0.0, w = 1.0)
Source

Class methods

slerp(qa, qb, qm, t)
Source

Instance methods

==(quaternion)

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

Source
clone
Source
conjugate
Source
copy(quaternion)
Source
dot(v)
Source
from_array(array, offset = 0)
Source
inverse
Source
length
Source
length_sq
Source
multiply(q)
Source
multiply_quaternions(a, b)
Source
normalize
Source
on_change
Source
on_change_callback
Source
set(x, y, z, w)
Source
set_from_axis_angle(axis, angle)
Source
set_from_euler(euler, update = true)
Source
set_from_rotation_matrix(m)
Source
set_from_unit_vectors(v_from, v_to)
Source
slerp(qb, t)
Source
to_array(array = [] of Float64, offset = 0)
Source
w=(w)
Source
x=(x)
Source
y=(y)
Source
z=(z)
Source