# How to get rotated rectangle's corner coordinates?

**URL:** <https://community.cesium.com/t/how-to-get-rotated-rectangles-corner-coordinates/17174>\
**Category:** CesiumJS\
**Created:** [February 4, 2022, 11:56am UTC](https://community.cesium.com/t/how-to-get-rotated-rectangles-corner-coordinates/17174 "2022-02-04T11:56:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hazel-Leylak](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hazel-leylak/32/7979_2.png) [@Hazel-Leylak](https://community.cesium.com/u/Hazel-Leylak)\
**Post date:** [February 4, 2022, 11:56am UTC](https://community.cesium.com/t/how-to-get-rotated-rectangles-corner-coordinates/17174/1 "2022-02-04T11:56:54Z")

</div>

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](https://sandcastle.cesium.com/index.html#c=pVXLjtowFP0Vi1WQUpMXCaEM6ohOuxm1I/rYNKPKCR5i1bGR4wQx1fx77YQ8hscI0QWL63vO8bnXJ6JEApQEb7EAN4DhLVjgnBQZ/FmdGdEgqeoFZxIRhkU0GL6PWMRKxZNUcfb4BRKSrwXapCSBT4JnH/FaYJwbngtDx/f9se16oW07gekG0LNdOwzHoRWElu17pqVFK0lxiaQHbc8JXG/ihJYXOErgLc34aptOaPu+5U6CiTvxg57i9S5PSUbs7CYl16VqIGZIqsFnN/QKKjQ0vkQ1rlTjS1Rj0b19okG3QtN+xdRUKzHV46kffawwexRn5RInUqHqkEHMJJEE5xCtVsbfiAEgVB+xNcVgCqoDoGhcrAhD6t5p42rZwKolt6aUBbQzGjdDsxbIFFUQRFv2glMu4MOP5cP9HdwSmd7STYoMCwYNRXCJJOFsCt55PnSc8dix/HHoWX7gaMRLxF6GvdFEPVYzIWzHgD338HeJaIF7NMaFTDHK5QX7Ppq8JRv6tmH3GlVji/9DVZMPVXNeXK/akk+qXruBlnyomlQcncZ2HLMbwOxuNbsneGzZG053a84+EZG/mVXQILusApASLJBI0p06rG2YTetMDj8v7+6+vIrhpIlhF7O+J7gvYC6X+5wqm8dBbYJW+3/mPPvOjSaitezAHMxyuaN43pj8QLKNWgkoBDUgHEmcbagO7ygukj9YwiTPNVVDZ6M+dbYiJSCrmxN/EiChKM9V56mg9Bt5xtFgPhsp/BGVcqQ+lvXXEguKdhqW2vP7+hBCOBup8jRTck5jJA6U/wE)

 ![image](https://global.discourse-cdn.com/cesium/original/2X/9/925cf3b2485cdd5d903c9cfff2e6d4e81d5a5c20.jpeg)

Any idea about converting rectangle to polygon?

---

<div class="post-metadata">

**Author:** ![ZhefengJin](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/zhefengjin/32/11504_2.png) [@ZhefengJin](https://community.cesium.com/u/ZhefengJin)\
**Post date:** [February 4, 2022, 1:16pm UTC](https://community.cesium.com/t/how-to-get-rotated-rectangles-corner-coordinates/17174/2 "2022-02-04T13:16:56Z")

</div>

> <https://stackoverflow.com/questions/70986199/how-to-get-rotated-rectangle-s-corner-coordinates/70987002#70987002>
