sknano.core.geometric_regions.Sphere.contains¶
-
Sphere.
contains
(point)[source][source]¶ Test region membership of point in
Sphere
.Parameters: point : array_like
Returns: 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:
(px−h)2+(py−k)2+(pz−l)2≤r2