# Some questions about rotation

**URL:** <https://discourse.threejs.org/t/some-questions-about-rotation/49377>\
**Category:** Questions\
**Tags:** rotation, quaternion, euler\
**Created:** [March 21, 2023, 8:51am UTC](https://discourse.threejs.org/t/some-questions-about-rotation/49377 "2023-03-21T08:51:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lua\_Ga\_Chi\_n\_Th\_n](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lua_ga_chi_n_th_n/32/34668_2.png) [@Lua\_Ga\_Chi\_n\_Th\_n](https://discourse.threejs.org/u/Lua_Ga_Chi_n_Th_n)\
**Post date:** [March 21, 2023, 8:51am UTC](https://discourse.threejs.org/t/some-questions-about-rotation/49377/1 "2023-03-21T08:51:19Z")

</div>

this.euler=new THREE.Euler(0, 0, 0, ‘YXZ’)  
this.euler.setFromQuaternion(this.g.camera.quaternion)  
what does “setfromquaternion” mean?

---

<div class="post-metadata">

**Author:** ![Fyrestar](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fyrestar/32/52793_2.png) [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)\
**Post date:** [March 21, 2023, 8:52am UTC](https://discourse.threejs.org/t/some-questions-about-rotation/49377/2 "2023-03-21T08:52:42Z")

</div>

[It’s converting a quaternion rotation to euler rotation.](https://threejs.org/docs/?q=euler#api/en/math/Euler.setFromQuaternion)
