Point on an ellipse

I’ve been wondering if there’s an easy way, using Cesium’s methods, to get the nearest point on an ellipse.
Assume we have a few ellipses drawn, and the user clicks somewhere on the map.

I’d like to find the closest point on an ellipse, and the angle compared to the north clockwise (the center of the ellipse would be the (0,0) point for that matter).

My end goal is to draw a 3D model (i.e. the Cesium air plane model) on this point and rotate it according to the angle.

Are there Ceisum methods that can be used to simplify this process?

Thanks

Hello,

Sorry, I don’t know of an easy way to achieve this.

You can try getting the bounding sphere for each ellipse and comparing your click point to the edge of the sphere. And you can use the sphere center to get your angle.

Best,

Hannah