locateOnPoint method

int locateOnPoint(
  1. Coordinate p,
  2. Point pt
)

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;
}