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

sknano.core.geometric_regions.Cube.contains

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

Test region membership of point in Cube.

Parameters:

point : array_like

Returns:

bool

True if point is within Cube, False otherwise

Notes

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:

cia2pici+a2i{x,y,z}