I have coordinates of points (x, y). By connecting these points we get a polygon in which I have to calculate the sum of its internal angles.
For example
points = [[3,1], [3,3], [1,3], [3,5], [7,5], [7,1]]
So, to get the values of all the interior angles of a polygon as list: [90, 270, 45, 135, 90, 90]
I repeat, I only have coordinates. Please tell me how to find out the angles between the lines.
In the picture I have given a rather simple example. In reality my polygons will not be so straight, but for example
6