public float Distance(CVec2 a, CVec2 b) { return(a.DistanceTo(b)); }
public float DistanceSqrTo(CVec2 o) { return((float)(Math.Pow(x - o.x, 2) + Math.Pow(y - o.y, 2))); }
public float DistanceTo(CVec2 o) { return((float)Math.Sqrt(DistanceSqrTo(o))); }
public bool Equals(CVec2 other) { return(x == other.x && y == other.y); }