# texture coordinate rotation angel

**URL:** <https://community.cesium.com/t/texture-coordinate-rotation-angel/1766>\
**Category:** CesiumJS\
**Created:** [December 15, 2014, 11:59am UTC](https://community.cesium.com/t/texture-coordinate-rotation-angel/1766 "2014-12-15T11:59:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![11126](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/11126/32/4635_2.png) [@11126](https://community.cesium.com/u/11126)\
**Post date:** [December 15, 2014, 11:59am UTC](https://community.cesium.com/t/texture-coordinate-rotation-angel/1766/1 "2014-12-15T11:59:49Z")

</div>

Have you a minute for me?

I am interesting in Cesium project, especially in kml-branch

so, I found that some tags (for example LatLonQuad) wasn’t implement in it. Because I need this tag , I try to implement it. After a moment I catch a problem about that: my pictures in polygon are inclined, so I need to compute rotation angel to texture Coordinates.

So, that is became big problem. I convert Cartographic coordinates to Cartesian3 and build bounding rectangle to find distances and compute this angel, but computation were wrong. Also I try to compute angel between inclined and bounding rectangle using Cartesian3.angelBetweem - but it also wrong.

what is my best decision to do that?

Thanks in advance,

Kate

---

<div class="post-metadata">

**Author:** ![Poul\_Sorensen](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@Poul\_Sorensen](https://community.cesium.com/u/Poul_Sorensen)\
**Post date:** [December 15, 2014, 1:24pm UTC](https://community.cesium.com/t/texture-coordinate-rotation-angel/1766/2 "2014-12-15T13:24:13Z")

</div>

Sorry. I cant help you out.

But for others to help I think its easier if you show your progress/code and where things goes wrong. Just a general advice.

---

<div class="post-metadata">

**Author:** ![11126](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/11126/32/4635_2.png) [@11126](https://community.cesium.com/u/11126)\
**Post date:** [December 15, 2014, 3:28pm UTC](https://community.cesium.com/t/texture-coordinate-rotation-angel/1766/3 "2014-12-15T15:28:06Z")

</div>

so. but maybe you know. my aim is to get rotation angle from 4 coordinates. How can I do that?

---

<div class="post-metadata">

**Author:** ![11126](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/11126/32/4635_2.png) [@11126](https://community.cesium.com/u/11126)\
**Post date:** [December 15, 2014, 4:34pm UTC](https://community.cesium.com/t/texture-coordinate-rotation-angel/1766/4 "2014-12-15T16:34:33Z")

</div>

I add an image. it is two 256\*256 image. but as you can see, they are wrong aligned. what should I change?

 ![test.jpg](https://global.discourse-cdn.com/cesium/original/2X/5/5e6de8f0eda7d44bc29cda4c254ce61f1d33297a.jpeg)
