Class Orbit
java.lang.Object
io.github.addoncommunity.galactifun.api.universe.attributes.Orbit
Represents the orbit of a celestial object
-
Method Summary
Modifier and TypeMethodDescriptiondoublestatic Orbitkilometers(double kilometers, double year) static Orbitkilometers(double kilometers, long days) static OrbitlightYears(double lightYears, double year) doubleposition()
-
Method Details
-
kilometers
- Parameters:
kilometers- the orbital distanceyear- the time it takes to orbit in earth years
-
kilometers
- Parameters:
kilometers- the orbital distancedays- the time it takes to orbit in earth days
-
lightYears
-
currentDistance
public double currentDistance() -
position
public double position()
-