AnyCAD Rapid SDK 2022
The Rapid CAD SDK
Public Member Functions | Static Public Member Functions | List of all members
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)