public double DistanceTo(GeoPoint pt) { return(Math.Sqrt(this.DistanceSquaredTo(pt))); }
public GeoSegment(GeoPoint start, GeoPoint end) { Start = start; End = end; }
public double DistanceSquaredTo(GeoPoint pt) { return((pt.Longitude - Longitude) * (pt.Longitude - Longitude) + (pt.Latitude - Latitude) * (pt.Latitude - Latitude)); }