# A little confused about the heading definition

**URL:** <https://community.cesium.com/t/a-little-confused-about-the-heading-definition/20749>\
**Category:** CesiumJS\
**Created:** [October 11, 2022, 3:00am UTC](https://community.cesium.com/t/a-little-confused-about-the-heading-definition/20749 "2022-10-11T03:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAX\_L](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/max_l/32/9322_2.png) [@MAX\_L](https://community.cesium.com/u/MAX_L)\
**Post date:** [October 11, 2022, 3:00am UTC](https://community.cesium.com/t/a-little-confused-about-the-heading-definition/20749/1 "2022-10-11T03:00:00Z")

</div>

As the doc shows, Heading is the rotation about the negative z axis. Pitch is the rotation about the negative y axis. Roll is the rotation about the positive x axis.

So where is the negative z axis? Where is the z axis? Is it relative to the earth? Or itself?

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [November 1, 2022, 3:23pm UTC](https://community.cesium.com/t/a-little-confused-about-the-heading-definition/20749/2 "2022-11-01T15:23:53Z")

</div>

Hi there,

It depends on your reference frame. This [sandcastle example](https://sandcastle.cesium.com/?src=LocalToFixedFrame.html) demonstrates how these reference frames relate to one another.

Thanks!  
Gabby

---

<div class="post-metadata">

**Author:** ![MAX\_L](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/max_l/32/9322_2.png) [@MAX\_L](https://community.cesium.com/u/MAX_L)\
**Post date:** [November 16, 2022, 6:16am UTC](https://community.cesium.com/t/a-little-confused-about-the-heading-definition/20749/3 "2022-11-16T06:16:45Z")

</div>

Thanks.
