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 \((p_x, p_y, p_z)\) is within the bounded region of a cube with center \((c_x, c_y, c_z)\) and side length \(a\) if the following is true:

\[c_i-\frac{a}{2}\le p_i\le c_i+\frac{a}{2}\forall i\in \{x, y, z\}\]