# How to get outer angles of polygon?

**URL:** <https://forums.unrealengine.com/t/how-to-get-outer-angles-of-polygon/403645>\
**Category:** AI\
**Tags:** unreal-engine, question, vectors\
**Created:** [September 3, 2017, 7:37pm UTC](https://forums.unrealengine.com/t/how-to-get-outer-angles-of-polygon/403645 "2017-09-03T19:37:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [September 3, 2017, 7:37pm UTC](https://forums.unrealengine.com/t/how-to-get-outer-angles-of-polygon/403645/1 "2017-09-03T19:37:26Z")

</div>

I feel that this shouldn’t be that hard, but my math side of brain just farted and turned into scrambled eggs.  
Here is what I’m trying to calculate:

 ![212079-ech.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/9/9194c734a88f02a3f8c2b774599670687c37b213.png)

The points are connected, just like in the picture. I’d be grateful for some hints…  
The only thing that I was able to come up with is to compare vector angles between: LookAt vector (thisPoint, previousPoint) and LookAt vector (thisPoint, nextPoint).

Here is how to get angle between 2 vectors: [How to get an angle between 2 Vectors? - Blueprint - Unreal Engine Forums](https://answers.unrealengine.com/questions/31058/how-to-get-an-angle-between-2-vectors.html)  
… But I still can’t get the right outer angles for my points. I don’t know…

---

<div class="post-metadata">

**Author:** ![KACWY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KACWY](https://forums.unrealengine.com/u/KACWY)\
**Post date:** [October 17, 2019, 1:21pm UTC](https://forums.unrealengine.com/t/how-to-get-outer-angles-of-polygon/403645/2 "2019-10-17T13:21:15Z")

</div>

Outside angles of any polygon (N-sides) = Number of vertices x 360 - sum of Internal angles of a polygon  
= 360N - 180(N-2)  
= 180N + 360.

I.e. For a Heptagon, Outside angles would equal 900 degrees.
