Exemplo n.º 1
0
 public float getAngle(Vector2D v2)
 {
     return (float)Math.Acos((double)((this * v2) / (this.module() * v2.module())));
 }
Exemplo n.º 2
0
 public Vector2D(Vector2D vec)
 {
     this.X = vec.X;
     this.Y = vec.Y;
 }
Exemplo n.º 3
0
 public float distance(Vector2D v2)
 {
     return (new Vector2D(this - v2)).module();
 }