Example #1
0
 public Vector2F Transform(Vector2F vector)
 {
     return(new Vector2F((float)((double)this.M00 * (double)vector.X + (double)this.M01 * (double)vector.Y), (float)((double)this.M10 * (double)vector.X + (double)this.M11 * (double)vector.Y)));
 }
Example #2
0
 public static Point2F Add(Point2F p, Vector2F v)
 {
     return(new Point2F(p.X + v.X, p.Y + v.Y));
 }
Example #3
0
 public static Point2F Subtract(Point2F p, Vector2F v)
 {
     return(new Point2F(p.X - v.X, p.Y - v.Y));
 }
Example #4
0
 public Point2F(Vector2F from)
 {
     this.X = from.X;
     this.Y = from.Y;
 }