Type Quaternion

Quaternion type

This type has been deprecated and will be removed in the future for the following reason: Pure Lua implementation. This can be done with a user library.

Methods

conj () Returns the conj of self
forward () Returns vector pointing forward for
i () Returns the i component of the quaternion
j () Returns the j component of the quaternion
k () Returns the k component of the quaternion
r () Alias for :real() as r is easier
real () Returns the real component of the quaternion
right () Returns vector pointing right for
up () Returns vector pointing up for


Methods

quat_methods:conj ()
Returns the conj of self
quat_methods:forward ()
Returns vector pointing forward for
quat_methods:i ()
Returns the i component of the quaternion
quat_methods:j ()
Returns the j component of the quaternion
quat_methods:k ()
Returns the k component of the quaternion
quat_methods:r ()
Alias for :real() as r is easier
quat_methods:real ()
Returns the real component of the quaternion
quat_methods:right ()
Returns vector pointing right for
quat_methods:up ()
Returns vector pointing up for

Valid XHTML 1.0!