Draw a ray on map

Hey ,
I am working with cesium 2D map mode
I would like to draw a ray from a certain point in the map with a certain bearing, to the end of the map.
How can I do that?
I saw that cesium have a Ray class but its not a map object .

Hi @Itay_ba,

Thank you for your question! I suspect that you could use the Ray class here. Alternatively, a CZML polyline might be the easiest solution. I recommend checking out this sandcastle demo for more information on how to use CZML polylines.

As we can see, they appear in 3D and 2D.