How to get rotated rectangle's corner coordinates?

Hi Cesium Community,

I am trying to get a corner coordinates of rotated rectangle. Then, create a polygon with these coordinates.

So far, I tried to use Rectangle.nortwest, southeast etc. functions but it gives me coordinates before rotation.

Here’s my code: Cesium Sandcastle

Any idea about converting rectangle to polygon?

1 Like