sknano.core.geometric_regions.Ellipse.contains

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

Test region membership of point in Ellipse.

Parameters:

point : array_like

Returns:

bool

True if point is within Ellipse, False otherwise

Notes

A point \((p_x, p_y)\) is within the bounded region of an ellipse with center \((c_x, c_y)\) and semi-axes lengths \(r_x, r_y\) 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\le 1\]