Apparently they aren't. According to the Wiki the coordinates in SystemInfo are in light years, while the ones in PlayerShip in an unknown measure. They are, however, convertible, if the x-part is multiplied with 2.5 and the y-part with 5.
Code: Select all
> PS.galaxyCoordinates
(158, 13, 0)
> System.infoForSystem(galaxyNumber,system.ID).coordinates
(63.2, 2.6, 0)
I want to test whether the player is currently located in interstellar space between two specific systems, and I can't think of another test than (systemA.coordinates + systemB.coordinates) / 2 = playerShip.galaxyCoordinates. However, that is made rather complicated by having to process playerShip.galaxyCoordinates.x differently from playerShip.galaxyCoordinates.y, and the same for the other two.
Is this intentional and—if yes—what is the intention behind it?