colour.algebra.point_at_angle_on_ellipse

colour.algebra.point_at_angle_on_ellipse(phi, coefficients)[source]

Returns the coordinates of the point at angle \(\phi\) in degrees on the ellipse with given canonical form coefficients.

Parameters:
  • phi (array_like) – Point at angle \(\phi\) in degrees to retrieve the coordinates of.
  • coefficients (array_like) – General form ellipse coefficients as follows: the center coordinates \(x_c\) and \(y_c\), semi-major axis length \(a_a\), semi-minor axis length \(a_b\) and rotation angle \(\theta\) in degrees of its semi-major axis \(a_a\).
Returns:

Coordinates of the point at angle \(\phi\)

Return type:

ndarray

Examples

>>> coefficients = np.array([0.5, 0.5, 2, 1, 45])
>>> point_at_angle_on_ellipse(45, coefficients)  # doctest: +ELLIPSIS
array([ 1.,  2.])