Loading [MathJax]/jax/output/HTML-CSS/jax.js

sknano.core.geometric_regions.Cuboid.contains

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

Test region membership of point in Cuboid.

Parameters:

point : array_like

Returns:

bool

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:

xminxxmaxyminyymaxzminzzmax