public Vector2D (Vector2D v) { this.x = v.x; this.y = v.y; }
public float DotProduct (Vector2D other) { return x * other.x + y * other.y; }
public Vector2D Add (Vector2D v) { x += v.x; y += v.y; return this; }