distanceToBoundaryPoint method
Computes the signed distance from a point to the area boundary. Points outside the polygon are assigned a negative distance. Their containing cells will be last in the priority queue (but may still end up being tested since they may need to be refined).
@param p the point to compute the distance for @return the signed distance to the area boundary (negative indicates outside the area)
Implementation
double distanceToBoundaryPoint(Point p) {
double dist = indexedDistance.facetDistance(p);
bool isOutide = Location.EXTERIOR == ptLocater.locate(p.getCoordinate()!);
if (isOutide) return -dist;
return dist;
}