I am trying to use trilateration in a program to simulate how it would be in real life. I have 3 transmitters which send out a signal that gets weaker after each square that the signal moves. I am using a 2D array and code that generates a crude circle of numbers. This shows one of the transmitters
00000000000000000000
00000000000000000000
00000000000000000000
00000000001000000000
00000000112110000000
00000001223221000000
00000001234321000000
00000012344432100000
00000001234321000000
00000001223221000000
00000000112110000000
00000000001000000000
00000000000000000000
00000000000000000000
00000000000000000000
00000000000000000000
00000000000000000000
00000000000000000000
00000000000000000000
00000000000000000000
My question is, how do I find the location of the receiver in the grid? How do I find where all three circles intersect? I tried setting the equations of the circles equal to each other and solving but that didn't give me anything, it gave me imaginary numbers.
I can also edit the code to make the circles unfilled if that helps. The radius of each circle can be changed
The signal strength of each transmitter is known in advance by the receiver and the strengths can also be changed (in the 100, 200, or 300 range or any other range)