colour.geometry.point_at_angle_on_ellipse#

colour.geometry.point_at_angle_on_ellipse(phi: ArrayLike, coefficients: ArrayLike) NDArrayFloat[source]#

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

Parameters:
  • phi (ArrayLike) – Point at angle \(\phi\) in degrees to retrieve the coordinates of.

  • coefficients (ArrayLike) – 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:

numpy.ndarray

Examples

>>> coefficients = np.array([0.5, 0.5, 2, 1, 45])
>>> point_at_angle_on_ellipse(45, coefficients)  
array([ 1.,  2.])