Trying to get a GPS Sensor to work with our own drivetrain code

So basically, I’m in Algebra 1, and I found from my intelligent peer that I could use a circle. Thus, I wrote this below down.
d^2 = (x2-x1)^2 + (y2-y1)^2

x1, y1 is the position

Then, for the angle. I wrote:
y = tan(a)*(x+x1) + y1

How could I use this data to program it in blocks to find the solution I need (to find the project coordinates)?

I don’t fully understand your question… could you clarify what it is you’re trying to find?

I was trying to find out how to program a gps sensor to detect distance. I might’ve figured it out:

x2 = x1 + distance * cos (pi/180 * (90 - heading))
y2 = y1 + distance * sin (pi/180 * (90 - heading))