Matrix.TR

static Matrix TR(Vec3 translation, Quat rotation)

Translate, Rotate. Creates a transform Matrix using these components!

   
Vec3 translation Move an object by this amount.
Quat rotation A Quaternion describing the rotation for this transform.
RETURNS: Matrix A Matrix that combines translation and rotation information into a single Matrix!
static Matrix TR(float x, float y, float z, Quat rotation)

Translate, Rotate. Creates a transform Matrix using these components!

   
float x Move an object on the x axis by this amount.
float y Move an object on the y axis by this amount.
float z Move an object on the z axis by this amount.
Quat rotation A Quaternion describing the rotation for this transform.
RETURNS: Matrix A Matrix that combines translation and rotation information into a single Matrix!
static Matrix TR(Vec3 translation, Vec3 pitchYawRollDeg)

Translate, Rotate. Creates a transform Matrix using these components!

   
Vec3 translation Move an object by this amount.
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 combines translation and rotation information into a single Matrix!
static Matrix TR(float x, float y, float z, Vec3 pitchYawRollDeg)

Translate, Rotate. Creates a transform Matrix using these components!

   
float x Move an object on the x axis by this amount.
float y Move an object on the y axis by this amount.
float z Move an object on the z axis by this amount.
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 combines translation and rotation information into a single Matrix!




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