-
Notifications
You must be signed in to change notification settings - Fork 3
Quaternion
FYP edited this page Aug 9, 2017
·
3 revisions
Quaternion quat = quaternion.new()
Quaternion quat = quaternion.new(Quaternion quat)
Quaternion quat = quaternion.new(Vector vec, float w)
Quaternion quat = quaternion.new(float x, float y, float z, float w)
Quaternion quat = quaternion.new(Matrix matrix)
Creates new quaternion
object.
Quaternion quat = quat.from_euler(float x, float y, float z)
Creates new quaternion
object from the Euler angles.
Quaternion quat = quaternion.from_memory(uint quat_ptr)
uint ptr = quat:get_pointer()
quat:set(Quaternion quat)
quat:set(Vector vec, float w)
quat:set(float x, float y, float z, float w)
quat:set(Matrix matrix)
float x, float y, float z, float w = quat:get()
quat:rotate(float x, float y, float z, float angle, [int combine_op])
quat:normalize()
Quaternion quat = quat:get_normalized()
Quaternion quat = quat:get_slerped(Quaternion quat, float t)
float x, float y, float z = quat:get_euler()
float x = quat.x
float y = quat.y
float z = quat.z
float w = quat.w
REPLACE
PRE_CONCAT
POST_CONCAT