coversCoordinate method

bool coversCoordinate(
  1. Coordinate p
)

Tests if the given point lies in or on the envelope.

@param p the point which this Envelope is being checked for containing @return true if the point lies in the interior or on the boundary of this Envelope.

Implementation

bool coversCoordinate(Coordinate p) {
  return covers(p.x, p.y);
}