public static bool WithinDistance(this Multipoint multipoint1, Multipoint multipoint2, double distance) { if (Null(multipoint1, multipoint2)) { return(false); } return(multipoint1.Extent().Buffer(distance).Intersects(multipoint2.Extent()) && multipoint1.Distance(multipoint2) < distance); }
public static bool WithinDistance(this Multipoint multipoint, Polygon polygon, double distance) { if (Null(multipoint, polygon)) { return(false); } return(multipoint.Extent().Buffer(distance).Intersects(polygon.Extent()) && multipoint.Distance(polygon) < distance); }
public static bool WithinDistance(this Point point, Multipoint multipoint, double distance) { if (Null(point, multipoint)) { return(false); } return(point.Extent().Buffer(distance).Intersects(multipoint.Extent()) && point.Distance(multipoint) < distance); }