How do I calculate the distance between the two light sensors (ie. Infrared LED and PhotoDiode). Actually I am designing a device based on the similar principle of GPS to control the mouse position on my computer system. Here is the schematic diagram of what I am trying to do:

I placed 3 photo diodes receivers (Red,Green,Blue) and one infrared led (Yellow), I have to find the position of infrared led for which I have to calculate the distance between LED and PhotoDiode, through the distance I can easily create imaginary circles around Photo diodes and can easily find out the position of LED (The common points of circles)
This question might be off-topic for this forum, but I asked it here because I think it is right place for it.
