sknano.core.geometric_regions.Ellipsoid.contains¶
-
Ellipsoid.
contains
(point)[source][source]¶ Test region membership of point in
Ellipsoid
.Parameters: point : array_like
Returns: True if point is within
Ellipsoid
, False otherwiseNotes
A point (px,py,pz) is within the bounded region of an ellipsoid with center (cx,cy,cz) and semi-axes lengths rx,ry,rz if the following is true:
(px−cxrx)2+(py−cyry)2+(pz−czrz)2≤1