Beispiel #1
0
 public Point2D(double x, double y)
 {
     Position = new Vector2D(x, y);
 }
Beispiel #2
0
 public Point2D(Vector2D position)
 {
     Position = position;
 }
Beispiel #3
0
 public Point2D()
 {
     Position = new Vector2D();
 }
Beispiel #4
0
 public static bool Equals(Vector2D v1, Vector2D v2)
 {
     return v1 == v2;
 }
Beispiel #5
0
 public static Vector2D Divide(Vector2D vec, double scalar)
 {
     return new Vector2D(vec/scalar);
 }
Beispiel #6
0
 public static Vector2D Add(Vector2D v1, Vector2D v2)
 {
     return new Vector2D(v1 + v2);
 }