# Matrix.TRS

``````static Matrix TRS(Vec3 translation, Quat rotation, float scale)
``````

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

Vec3 translation Move an object by this amount.
Quat rotation A Quaternion describing the rotation for this transform.
float scale How much larger or smaller this transform makes things. 1 is a good default, as 0 will shrink it to nothing! This will expand to a scale vector of (size, size, size)
RETURNS: Matrix A Matrix that combines translation, rotation, and scale information into a single Matrix!
``````static Matrix TRS(Vec3 translation, Quat rotation, Vec3 scale)
``````

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

Vec3 translation Move an object by this amount.
Quat rotation A Quaternion describing the rotation for this transform.
Vec3 scale How much larger or smaller this transform makes things. Vec3.One is a good default, as Vec3.Zero will shrink it to nothing!
RETURNS: Matrix A Matrix that combines translation, rotation, and scale information into a single Matrix!
``````static Matrix TRS(Vec3 translation, Vec3 pitchYawRollDeg, float scale)
``````

Translate, Rotate, Scale. Creates a transform Matrix using all 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.
float scale How much larger or smaller this transform makes things. Vec3.One is a good default, as Vec3.Zero will shrink it to nothing!
RETURNS: Matrix A Matrix that combines translation, rotation, and scale information into a single Matrix!
``````static Matrix TRS(Vec3 translation, Vec3 pitchYawRollDeg, Vec3 scale)
``````

Translate, Rotate, Scale. Creates a transform Matrix using all 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.
Vec3 scale How much larger or smaller this transform makes things. Vec3.One is a good default, as Vec3.Zero will shrink it to nothing!
RETURNS: Matrix A Matrix that combines translation, rotation, and scale information into a single Matrix!

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