예제 #1
0
 public static bool Contains(this BBox bbox, IPoint point)
 {
     if (point.X >= bbox.XMin && point.X <= bbox.XMax && point.Y >= bbox.YMin && point.Y <= bbox.YMax)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
 public static bool Within(this IPoint point, BBox bbox)
 {
     if (point.X >= bbox.XMin && point.X <= bbox.XMax && point.Y >= bbox.YMin && point.Y <= bbox.YMax)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }