Пример #1
0
 public static int DistanceSquared(Vector2i a, Vector2i b)
 {
     int dx = b.x - a.x;
     int dy = b.y - a.y;
     return dx * dx + dy * dy;
 }
Пример #2
0
 public int DistanceSquared(Vector2i v)
 {
     return DistanceSquared (this, v);
 }
Пример #3
0
 private static Vector3 Convert(Vector2i v)
 {
     return Convert((Vector2) v);
 }