Пример #1
0
 public float getAngle(Vector2D v2)
 {
     return (float)Math.Acos((double)((this * v2) / (this.module() * v2.module())));
 }
Пример #2
0
 public Vector2D(Vector2D vec)
 {
     this.X = vec.X;
     this.Y = vec.Y;
 }
Пример #3
0
 public float distance(Vector2D v2)
 {
     return (new Vector2D(this - v2)).module();
 }