Exemplo n.º 1
0
 public static TVector Flip(TVector tv)
 {
     return(new TVector(new Vector2D(tv.One.x, tv.Two.x), new Vector2D(tv.One.y, tv.Two.y)));
 }
Exemplo n.º 2
0
 public static TVector Transform(TVector tv1, TVector tv2)
 {
     return(new TVector(Transformation(tv1, Flip(tv2).One), Transformation(tv1, Flip(tv2).Two)));
 }
Exemplo n.º 3
0
 public static Vector2D Transformation(TVector tv, Vector2D input)
 {
     return(new Vector2D(Vector2D.Dot(tv.One, input), Vector2D.Dot(tv.Two, input)));
 }