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

sknano.core.geometric_regions.Sphere.contains

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

Test region membership of point in Sphere.

Parameters:

point : array_like

Returns:

bool

True if point is within Sphere, False otherwise.

Notes

A point (px,py,pz) is within the bounded region of a sphere with center (h,k,l) and radius r if the following is true:

(pxh)2+(pyk)2+(pzl)2r2