We say that Luna is Earth's moon. That's like looking at it from the Earth's perspective, or from a wider perspective. What is Earth to Luna from Luna's perspective?
In an application I've been coding, I create an object for each planet and in each object, there are two properties moon and master. For example,
earth : {
radius : 60,
moons : [ luna ],
master : null,
},
luna : {
radius : 15,
moons : [],
master : earth,
},
I chose master but I'm curious if there's a better or more technical term for that.
I wasn't sure if I should ask this in astronomy.stackexchange.com or in here. So, advise if I was wrong.