sknano.core.geometric_regions.Square.contains¶
-
Square.
contains
(point)[source][source]¶ Test region membership of point in
Square
.Parameters: point : array_like
Returns: True if point is within
Square
, False otherwise.Notes
A point (px,py) is within the bounded region of a square with center (cx,cy) and side length a if the following is true:
ci−a2≤pi≤ci+a2∀i∈{x,y}