예제 #1
0
 public static Vector2 MulT(ref Mat22 A, ref Vector2 v)
 {
     return(new Vector2(v.X * A.ex.X + v.Y * A.ex.Y, v.X * A.ey.X + v.Y * A.ey.Y));
 }
예제 #2
0
 public static Vector2 Mul(ref Mat22 A, ref 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
 public static Vector2 MulT(ref Mat22 A, Vector2 v)
 {
     return(MulT(ref A, ref v));
 }
예제 #4
0
 public static void Add(ref Mat22 A, ref Mat22 B, out Mat22 R)
 {
     R.ex = A.ex + B.ex;
     R.ey = A.ey + B.ey;
 }