Compute point of intersection between a line segment and a sphere

1. A concise explanation of the problem you’re experiencing.

I want to compute points of intersection, if any, between a sphere and a polyline, it would be helpful if there is any API to accomplish for the same

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

Need to find if flightpath is passing through a sensor dome sphere

4. The Cesium version you’re using, your operating system and browser.

Cesium version 1.63, Operating System Windows 10, Browser Google Chrome

The Cesium ion Engine does have an analytics SDK that can be used to compute this type of visibility check:

This is currently only available with an on-premise license of Cesium ion.

For your specific case of a line and a sphere, you should be able to find a simple algorithm to compute that you can implement it in your Cesium application.