예제 #1
0
파일: Math.cs 프로젝트: d34d10cc/Barotrauma
 /// 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;
 }
예제 #2
0
파일: Math.cs 프로젝트: d34d10cc/Barotrauma
 /// 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);
 }
예제 #3
0
파일: Math.cs 프로젝트: alanmbennett/Diez
 /// 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));
 }
예제 #4
0
파일: Math.cs 프로젝트: alanmbennett/Diez
 /// 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);
 }
예제 #5
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);
 }
예제 #6
0
 /// Multiply a matrix times a vector.
 public static FVector2 Mul22(Mat33 A, FVector2 v)
 {
     return(new FVector2(A.ex.X * v.X + A.ey.X * v.Y, A.ex.Y * v.X + A.ey.Y * v.Y));
 }
예제 #7
0
 /// Multiply a matrix times a vector.
 public static FVector3 Mul(Mat33 A, FVector3 v)
 {
     return(v.X * A.ex + v.Y * A.ey + v.Z * A.ez);
 }