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