contains method

bool contains(
  1. double x,
  2. double y
)

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

Note that this is not the same definition as the SFS contains, which would exclude the envelope boundary.

@param x the x-coordinate of the point which this Envelope is being checked for containing @param y the y-coordinate of the point which this Envelope is being checked for containing @return true if (x, y) lies in the interior or on the boundary of this Envelope.

@see #covers(double, double)

Implementation

bool contains(double x, double y) {
  return covers(x, y);
}