コード例 #1
0
 /// <summary>
 /// Determines whether a point is within the rectangle.
 /// </summary>
 /// <param name="point">The point being tested.</param>
 /// <returns><c>true</c> if the point is within the rectangle.</returns>
 public override bool Contains(GeoCoordinate point)
 {
     return(swPoint.Longitude <= point.Longitude && point.Longitude <= nePoint.Longitude &&
            nePoint.Latitude >= point.Latitude && point.Latitude >= swPoint.Latitude);
 }