public void Scale(float x, float y, float z) { Matrix3 m = new Matrix3(); m.SetScaled(x, y, z); Set(this * m); }
//scales a matrix. public void Scale(Vector3 v) { Matrix3 m = new Matrix3(); m.SetScaled(v.x, v.y, v.z); Set(this * m); }
//scales the local transform of an object public void SetScale(float width, float height) { localTransform.SetScaled(width, height, 1); UpdateTransform(); }// translates the position of the object