sknano.core.geometric_regions.Rectangle.contains¶
-
Rectangle.
contains
(point)[source][source]¶ Test region membership of point in
Rectangle
.Parameters: point : array_like
Returns: 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:
xmin≤x≤xmax∧ymin≤y≤ymax