I play EVE online. I like to mine, occasionally. My mining lasers have a range of 15km. The asteroid belts within which I mine are often much much larger than 15km. My Exhumer (the ship with which I mine) is impossibly slow, thus slowboating to new 'roids is silly, so, I bookmark 'roids, warp off, then warp to the bookmark, essentially giving me a new 15km sphere of ore to consume.
I know enough Python to write a program to give me the optimal 'roids to bookmark, but I've fallen down on the equations/procedure. I decided to start small, with 1 dimension, as opposed to 3.
I've tried several things, and nothing has worked so far. I figured I'd need 3 points from which to measure from, so I can first find the co-ordinate of the points, (assuming p0 is at co-ordinate (0)), then use an equation I already have working to use p0 and p1 to find x.
I've tried Googling, and usually, my Google-fu is strong, but today, it returned me nothing but distances from a point to a line, which is of course not what I want.
Thanks in advance.
(Also, is this a pre-university problem, or not? I wouldn't know, as this is obviously a personal endeavour.)