Exemple #1
0
 /// Multiply a matrix times a vector.
 public static Vector2 Mul22(Mat33 A, Vector2 v)
 {
     return(new Vector2(A.ex.X * v.X + A.ey.X * v.Y, A.ex.Y * v.X + A.ey.Y * v.Y));
 }
Exemple #2
0
 /// Multiply a matrix times a vector.
 public static Vector3 Mul(Mat33 A, Vector3 v)
 {
     return(v.X * A.ex + v.Y * A.ey + v.Z * A.ez);
 }