예제 #1
0
        public void Scale(float x, float y, float z)
        {
            Matrix3 m = new Matrix3();

            m.SetScaled(x, y, z);
            Set(this * m);
        }
예제 #2
0
        //scales a matrix.
        public void Scale(Vector3 v)
        {
            Matrix3 m = new Matrix3();

            m.SetScaled(v.x, v.y, v.z);
            Set(this * m);
        }
예제 #3
0
 //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