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