sknano.core.geometric_regions.Cuboid.contains¶
-
Cuboid.
contains
(point)[source][source]¶ Test region membership of point in
Cuboid
.Parameters: point : array_like
Returns: True if point is within
Cuboid
, False, otherwise.Notes
A point (px,py,pz) is within the bounded region of a cuboid with lower corner at pmin=(xmin,ymin,zmin) and upper corner at pmax=(xmax,ymax,zmax) if the following is true:
xmin≤x≤xmax∧ymin≤y≤ymax∧zmin≤z≤zmax