Matrix.R

static Matrix R(Quat rotation)

Create a rotation matrix from a Quaternion.

   
Quat rotation A Quaternion describing the rotation for this transform.
RETURNS: Matrix A Matrix that will rotate by the provided Quaternion orientation.
static Matrix R(float pitchXDeg, float yawYDeg, float rollZDeg)

Create a rotation matrix from pitch, yaw, and roll information. Units are in degrees.

   
float pitchXDeg Pitch, or rotation around the X axis, in degrees.
float yawYDeg Yaw, or rotation around the Y axis, in degrees.
float rollZDeg Roll, or rotation around the Z axis, in degrees.
RETURNS: Matrix A Matrix that will rotate by the provided pitch, yaw and roll.
static Matrix R(Vec3 pitchYawRollDeg)

Create a rotation matrix from pitch, yaw, and roll information. Units are in degrees.

   
Vec3 pitchYawRollDeg Pitch (x-axis), yaw (y-axis), and roll (z-axis) stored as x, y and z respectively in this Vec3. Units are in degrees.
RETURNS: Matrix A Matrix that will rotate by the provided pitch, yaw and roll.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!