# How do I determine if angle x is within y degrees of mc.\_rotation

**URL:** <https://forum.kirupa.com/t/how-do-i-determine-if-angle-x-is-within-y-degrees-of-mc--rotation/162651>\
**Category:** flash\
**Created:** [September 15, 2005, 2:12am UTC](https://forum.kirupa.com/t/how-do-i-determine-if-angle-x-is-within-y-degrees-of-mc--rotation/162651 "2005-09-15T02:12:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_D1](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@Mike\_D1](https://forum.kirupa.com/u/Mike_D1)\
**Post date:** [September 15, 2005, 2:12am UTC](https://forum.kirupa.com/t/how-do-i-determine-if-angle-x-is-within-y-degrees-of-mc--rotation/162651/1 "2005-09-15T02:12:35Z")

</div>

Hi, I’m having a problem determining if the angle created between two movie clips (which I’ve calculated with Math.atan2) is within +/-35 degrees of movie clip b’s rotation. Can somebody help me with the code, or at least the math?!
