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 \((p_x, p_y, p_z)\) is within the bounded region of an ellipsoid with center \((c_x, c_y, c_z)\) and semi-axes lengths \(r_x, r_y, r_z\) if the following is true:
\[\left(\frac{p_x - c_x}{r_x}\right)^2 + \left(\frac{p_y - c_y}{r_y}\right)^2 + \left(\frac{p_z - c_z}{r_z}\right)^2\le 1\]