AnyCAD Rapid API 2023
Help you to create a better world!
Quaternion Class Reference

Public Member Functions

 Quaternion (float s, Vector3 v)
 
 Quaternion (float w, float x, float y, float z)
 
void setX (float value)
 
float getX ()
 
void setY (float value)
 
float getY ()
 
void setZ (float value)
 
float getZ ()
 
void setW (float value)
 
float getW ()
 
Quaternion clone ()
 
Matrix4 toMatrix4 ()
 
Matrix3 toMatrix3 ()
 
Quaternion conjugate ()
 
Vector3 eulerAngles ()
 

Static Public Member Functions

static Quaternion makeFromAxisAngle (float angle, Vector3 axis)
 
static Quaternion makeFromEulerAngles (float pitch, float yaw, float roll)
 
static Quaternion getRotationTo (Vector3 from, Vector3 to)