locate method
Determines the {@link Location} of a point in an areal {@link Geometry}.
@param p the point to test @return the location of the point in the geometry
Implementation
int locate(Coordinate p) {
RayCrossingCounter rcc = new RayCrossingCounter(p);
SegmentVisitor visitor = new SegmentVisitor(rcc);
index.queryWithVisitor(p.y, p.y, visitor);
/*
// MD - slightly slower alternative
List segs = index.query(p.y, p.y);
countSegs(rcc, segs);
*/
return rcc.getLocation();
}