public static bool Contains( this MapRegion region, Position position) { if (region == null) { return(false); } return(region.ToBounds().Contains(position)); }
public static bool Contains( this MapRegion region, Bounds bounds) { if (region == null || bounds == null) { return(false); } return(region.ToBounds().Intersects(bounds)); }