Is there any repository of math functions focused on the GPS coordinates system? (latitude, longitude)
I am looking for:
- Distance between two points
- Distance from point to line
- Obtain mirror point D: Given a line from A to B and the point C, obtain the point D, which has the distance to the line as C. (on the same plane):

I will implement it in php, although that it's not relevant.