Processing math: 100%

sknano.core.geometric_regions.Rectangle.contains

Rectangle.contains(point)[source][source]

Test region membership of point in Rectangle.

Parameters:

point : array_like

Returns:

bool

True if point is within Rectangle, False, otherwise.

Notes

A point (px,py) is within the bounded region of a rectangle with lower corner at pmin=(xmin,ymin) and upper corner at pmax=(xmax,ymax) if the following is true:

xminxxmaxyminyymax