locateOnPoint method
Implementation
int locateOnPoint(Coordinate p, Point pt) {
// no point in doing envelope test, since equality test is just as fast
Coordinate? ptCoord = pt.getCoordinate();
if (ptCoord!.equals2D(p)) return Location.INTERIOR;
return Location.EXTERIOR;
}