rectangle hit location

Hi,

I have a Cesium entity that from it I am creating and constantly updating polyline to several directions.

I need to place billboards on the edges of the map view in case that the entity is within the: scene**.camera.**computeViewRectangle on the polyline.

How can I get the location where the polyline hits the view rectangle?

Thanks,

Kfir.

Hello Kfir,

There is no function like this built into Cesium. You will have to do your own calculation.

Best,

Hannah

Hannah,
Is there an api for verifing that the entity is in the camera view/ rectangle?

Not directly, but you can use Rectangle.contains to determine whether the position is in the rectangle.

-Hannah