Algorithm for converting a coordinate into angles of a pentagon.

93 Views Asked by At

I will go ahead and admit, this might just be something obvious but I did research and couldn't find anything.

I have a pentagon, and I know two top points (A & B) and the distance between them (black). I also know the other 4 side lengths (blue), which are all the same. I know the bottom point too, and I don't care about the two side points.

How can I use the bottom point (E) to determine the angle between each of the top two points, and their adjacent side lengths?

EDIT:

enter image description here

Points A, B, & E are known. All side lengths are known. Side lengths of the same colour are equal. Angles that I want to know have dotted lines.

EDIT II: I realize my question may need clarification. The pentagon is on a coordinate plane. I know the location of A, B, and E. I want to use point E to find the interior angles on points A & B.

1

There are 1 best solutions below

2
On

You want to find angle $\alpha+\beta$ in diagram below, and the analogous angle of vertex $B$ (caution: names of points are different from those in the question). By standard trigonometry we have: $$ \cos\alpha={AH\over AD}={{1\over2}AC\over AD}, \quad \cos\beta={AB^2+AC^2-BC^2\over2\,AB\cdot AC}. $$ And similar formulas for the angles of vertex $B$.

enter image description here