Open DmitriTheDemon opened 5 years ago
For determining the closest voidgate, you can do VOIDGATE NEAREST RS-6949
. I'm working on a list of market location names, from which a list of zones can be extracted.
The distance calc is pretty simple:
a = {x:38,y:38}
b = {x:69,y:49}
Math.sqrt((a.x-b.x)**2 + (a.y-b.y)**2)
Yeah I wasn’t super worried about the math. That’s an easy googling. I’m glad you have a lead on the zones though.
Sent from my iPhone
On Jan 22, 2019, at 10:10 AM, Gustav Bertram notifications@github.com wrote:
For determining the closest voidgate, you can do VOIDGATE NEAREST RS-6949. I'm working on a list of market location names, from which a list of zones can be extracted.
The distance calc is pretty simple:
a = {x:38,y:38} b = {x:69,y:49} Math.sqrt((a.x-b.x)2 + (a.y-b.y)2) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I joined their discord going to try and find out if they ha e any plans for this already because they did implement this already for incursions
Sent from my iPhone
On Jan 22, 2019, at 10:10 AM, Gustav Bertram notifications@github.com wrote:
For determining the closest voidgate, you can do VOIDGATE NEAREST RS-6949. I'm working on a list of market location names, from which a list of zones can be extracted.
The distance calc is pretty simple:
a = {x:38,y:38} b = {x:69,y:49} Math.sqrt((a.x-b.x)2 + (a.y-b.y)2) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Where possible any detected sector names should be updated to show the current distance to the sector from the present location. This can be parsed with the regex expression [A-Z]{2}-([0-9]{2})([0-9]{2}) for the majority of sectors.
A string array will be required in order to determine the spacial coordinates of named systems such as Scatterhome.
An article for determining the distance between points can be found here. Values should be rounded to the nearest whole number for convenience.
https://sciencing.com/calculate-distance-between-two-coordinates-6390158.html
This feature will allow distance to be determined when using lists such as STATIONS LIST or VOIDGATE