First, I'll start by saying this isn't some homework assignment, this is one of those rare, real-life problems.
I made this web page cause I'v had to explain the problem so many times.

Sorry if I use a capital L as the angle symbol...

- A robot (R) is on a field with 3 positioning beacons (A, B, and C)
- The robot knows the real-world positions (x, y) of the 3 beacons.
- The robot is able to scan around it and obtain the angles, between the 3 beacons, the scanning process also identifies the beacons (it knows which is which) It CANNOT get information on its distance from it to the beacons due to hardware limitations (via financial limitations)

The goal is to calculate the position of the robot (Rx,Ry) from the 3 angles (L ARB, L BRC, L ARC)



Angles that are known
L ARC
L BRC
L ARB
L ABC
L ACB
L BAC

Distances that are known
AB
BC
AC

Things that might be of help I'v worked out so far (the maybe-not-so-obvious)

>  L RCB + L RBC = L ARC + L ARB - 180
>  L RCA + L RAC = L ARB + L ARC - 180
>  L RAB + L RBA = L BRC + L ARC - 180

>  L RAB = 360 - L RCB - L ABC - L BRC - L ARB
>  L RBC = 360 - L RAC - L ACB - L ARC - L BRC
>  L ABR = 360 - L ACR - L BAC - L ARB - L ARC

An idea is to get two angles such as L RCB and L RBC, form two line equations based on their slope and the fact they pass through C and B, and calculate the intersection point.

Credits to lhf of #math who pointed out the following:

1) - If line JK is created such that its a perpendicular bisector of line AB
2) - Then creates lines AK and BK such that L AKB = 360 - 2*(L ARB)
3) - Then draw a circle with center on intersection of JK and AK that passes through A and B
4) -> Point R will lie on that circle, if the same is done for beacons B and C, the two intersections will be the beacon in common (B) and the robots position (R)

step 2 seems kinda trickey till ya tear it apart a little more. JK bisects L AKB and JK is perpendicular to AB, so with some quite simple math, L JAK = L ARB - 90

trick now is to traslate that all to math that a 16mips 8 bit machine can do in under 0.5 seconds.

 Rue