Esempio n. 1
0
        public static void Multiply(ref Matrix2x3 matrix1, ref Matrix3x2 matrix2, out Matrix2 result)
        {
            result.X.X = (matrix1.X.X * matrix2.X.X) + (matrix1.X.Y * matrix2.Y.X) + (matrix1.X.Z * matrix2.Z.X);
            result.X.Y = (matrix1.X.X * matrix2.X.Y) + (matrix1.X.Y * matrix2.Y.Y) + (matrix1.X.Z * matrix2.Z.Y);

            result.Y.X = (matrix1.Y.X * matrix2.X.X) + (matrix1.Y.Y * matrix2.Y.X) + (matrix1.Y.Z * matrix2.Z.X);
            result.Y.Y = (matrix1.Y.X * matrix2.X.Y) + (matrix1.Y.Y * matrix2.Y.Y) + (matrix1.Y.Z * matrix2.Z.Y);
        }
Esempio n. 2
0
 public Vector2 Transform(Matrix2x3 matrix)
 {
     return(new Vector2
            (
                (matrix.X.X * X) + (matrix.X.Y * Y) + (matrix.X.Z * Z),
                (matrix.Y.X * X) + (matrix.Y.Y * Y) + (matrix.Y.Z * Z)
            ));
 }
Esempio n. 3
0
 public Vector3 Transform(Matrix2x3 matrix)
 {
     return(new Vector3
            (
                (X * matrix.X.X) + (Y * matrix.Y.X),
                (X * matrix.X.Y) + (Y * matrix.Y.Y),
                (X * matrix.X.Z) + (Y * matrix.Y.Z)
            ));
 }
Esempio n. 4
0
        public static void Transpose(Matrix3x2 matrix, out Matrix2x3 result)
        {
            result.X.X = matrix.X.X;
            result.X.Y = matrix.Y.X;
            result.X.Z = matrix.Z.X;

            result.Y.X = matrix.X.Y;
            result.Y.Y = matrix.Y.Y;
            result.Y.Z = matrix.Z.Y;
        }
Esempio n. 5
0
 public Vector2 Transform(Matrix2x3 matrix)
 {
     return new Vector2
     (
         (matrix.X.X * X) + (matrix.X.Y * Y) + (matrix.X.Z * Z),
         (matrix.Y.X * X) + (matrix.Y.Y * Y) + (matrix.Y.Z * Z)
     );
 }
Esempio n. 6
0
 public static void Transform(ref Vector3 vector, ref Matrix2x3 matrix, out Vector2 result)
 {
     result.X = (matrix.X.X * vector.X) + (matrix.X.Y * vector.Y) + (matrix.X.Z * vector.Z);
     result.Y = (matrix.Y.X * vector.X) + (matrix.Y.Y * vector.Y) + (matrix.Y.Z * vector.Z);
 }
Esempio n. 7
0
        public static void Transpose(Matrix2x3 matrix, out Matrix3x2 result)
        {
            result.X.X = matrix.X.X;
            result.X.Y = matrix.Y.X;

            result.Y.X = matrix.X.Y;
            result.Y.Y = matrix.Y.Y;

            result.Z.X = matrix.X.Z;
            result.Z.Y = matrix.Y.Z;
        }
Esempio n. 8
0
        public static void Multiply(ref Matrix2x3 matrix1, ref Matrix3x2 matrix2, out Matrix2 result)
        {
            result.X.X = (matrix1.X.X * matrix2.X.X) + (matrix1.X.Y * matrix2.Y.X) + (matrix1.X.Z * matrix2.Z.X);
            result.X.Y = (matrix1.X.X * matrix2.X.Y) + (matrix1.X.Y * matrix2.Y.Y) + (matrix1.X.Z * matrix2.Z.Y);

            result.Y.X = (matrix1.Y.X * matrix2.X.X) + (matrix1.Y.Y * matrix2.Y.X) + (matrix1.Y.Z * matrix2.Z.X);
            result.Y.Y = (matrix1.Y.X * matrix2.X.Y) + (matrix1.Y.Y * matrix2.Y.Y) + (matrix1.Y.Z * matrix2.Z.Y);
        }
Esempio n. 9
0
 public Vector3 Transform(Matrix2x3 matrix)
 {
     return new Vector3
     (
         (X * matrix.X.X) + (Y * matrix.Y.X),
         (X * matrix.X.Y) + (Y * matrix.Y.Y),
         (X * matrix.X.Z) + (Y * matrix.Y.Z)
     );
 }
Esempio n. 10
0
 public static void Transform(ref Vector2 vector, ref Matrix2x3 matrix, out Vector3 result)
 {
     result.X = (vector.X * matrix.X.X) + (vector.Y * matrix.Y.X);
     result.Y = (vector.X * matrix.X.Y) + (vector.Y * matrix.Y.Y);
     result.Z = (vector.X * matrix.X.Z) + (vector.Y * matrix.Y.Z);
 }
Esempio n. 11
0
 public static void Transform(ref Vector3 vector, ref Matrix2x3 matrix, out Vector2 result)
 {
     result.X = (matrix.X.X * vector.X) + (matrix.X.Y * vector.Y) + (matrix.X.Z * vector.Z);
     result.Y = (matrix.Y.X * vector.X) + (matrix.Y.Y * vector.Y) + (matrix.Y.Z * vector.Z);
 }
Esempio n. 12
0
 public static void Transform(ref Vector2 vector, ref Matrix2x3 matrix, out Vector3 result)
 {
     result.X = (vector.X * matrix.X.X) + (vector.Y * matrix.Y.X);
     result.Y = (vector.X * matrix.X.Y) + (vector.Y * matrix.Y.Y);
     result.Z = (vector.X * matrix.X.Z) + (vector.Y * matrix.Y.Z);
 }