@JayleBreak posted some code a while back for converting ::pos-style planetary coordinates to global world (space) coordinates, and vice-versa. Here is a link to his original post:
The lua attachments have been removed from the post, and I would very much like to see that code. Could someone please repost them? Thank you!