Matrix.TS
static Matrix TS(Vec3 translation, float scale)
Translate, Scale. Creates a transform Matrix using both these components!
Vec3 translation | Move an object by this amount. |
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 and scale information into a single Matrix! |
static Matrix TS(Vec3 translation, Vec3 scale)
Translate, Scale. Creates a transform Matrix using both these components!
Vec3 translation | Move an object by this amount. |
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 and scale information into a single Matrix! |
static Matrix TS(float x, float y, float z, float scale)
Translate, Scale. Creates a transform Matrix using both 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. |
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 and scale information into a single Matrix! |
static Matrix TS(float x, float y, float z, Vec3 scale)
Translate, Scale. Creates a transform Matrix using both 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 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 and scale information into a single Matrix! |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!