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