# Help with Angles

**URL:** <https://forum.kirupa.com/t/help-with-angles/111930>\
**Category:** Uncategorized\
**Created:** [June 1, 2004, 8:02pm UTC](https://forum.kirupa.com/t/help-with-angles/111930 "2004-06-01T20:02:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shack](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@shack](https://forum.kirupa.com/u/shack)\
**Post date:** [June 1, 2004, 8:02pm UTC](https://forum.kirupa.com/t/help-with-angles/111930/1 "2004-06-01T20:02:59Z")

</div>

Hi everybody!  
I need some help with getting angles, of two movieclips that are on my stage. With instance names: circle1,circle2.  
I read that I should use the function Math.atan2 to get the angle, in radians, then I convert it to degrees, but it doesn’t make sense, the angles aren’t correct… Here I paste the code I use (its AS not PHP don’t know how to add the AS tags):

```php
 _global.Math.degree = function(radians) {
return (radians * 180/Math.PI);
}
trace(Math.round(Math.degree(Math.atan2(_root.circle1._x,_root.circle2._y))));

```

Any help would be apreciated 🙂 cheers everybody!
