# Getting angle of line

**URL:** <https://forum.kirupa.com/t/getting-angle-of-line/282975>\
**Category:** web dev\
**Created:** [February 28, 2009, 9:32pm UTC](https://forum.kirupa.com/t/getting-angle-of-line/282975 "2009-02-28T21:32:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![evildrummer](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/evildrummer/32/2308_2.png) [@evildrummer](https://forum.kirupa.com/u/evildrummer)\
**Post date:** [February 28, 2009, 9:32pm UTC](https://forum.kirupa.com/t/getting-angle-of-line/282975/1 "2009-02-28T21:32:50Z")

</div>

I’ve not done trig in a long time, or any form of maths. If I have a line (in which I have access to both x,y co-ords of both points). How do I get the angle of the line in radians when against a horizontal line.
