Exemplo n.º 1
0
            public static Vector3[] scale(Vector3[] to_scale, float x, float y, float z)
            {
                Vector3[] scaled = new Vector3[to_scale.Length];
                MyMatrix4 mat    = MyMatrix4.getScaleMatrix(x, y, z);

                for (int i = 0; i < to_scale.Length; i++)
                {
                    scaled[i] = mat * to_scale[i];
                }

                return(scaled);
            }
Exemplo n.º 2
0
            public static Vector3 scale(Vector3 to_scale, float x, float y, float z)
            {
                MyMatrix4 mat = MyMatrix4.getScaleMatrix(x, y, z);

                return(mat * to_scale);
            }