示例#1
0
        //Scale this Matrix4 by the specified values
        public void Scale(float x, float y, float z)
        {
            Matrix4 m = new Matrix4();

            m.SetScaled(x, y, z);
            Set(this * m);
        }
示例#2
0
        //Scale this Matrix4 by the specified Vector3's values
        public void Scale(Vector4 v)
        {
            Matrix4 m = new Matrix4();

            m.SetScaled(v);
            Set(this * m);
        }
        //sets the scale of the matrix using a inputted vector
        void Scale(Vector4 v)
        {
            Matrix4 m = new Matrix4();

            m.SetScaled(v.x, v.y, v.z);
            Set(this * m);
        }