Class HeliotropicOrbitCoordinates
java.lang.Object
gaiasky.util.coord.AbstractOrbitCoordinates
gaiasky.util.coord.HeliotropicOrbitCoordinates
- All Implemented Interfaces:
IBodyCoordinates, IOrbitCoordinates
-
Field Summary
Fields inherited from class AbstractOrbitCoordinates
center, entity, instances, logger, orbitName, owner, periodic, scalingModifier and TypeFieldDescriptionprotected Vector3Dprotected com.badlogic.ashley.core.EntityThe orbit/trajectory entity.protected static final List<AbstractOrbitCoordinates> protected static final Logger.Logprotected Stringprotected com.badlogic.ashley.core.EntityThe celestial body owner (planet, moon, spacecraft, etc.).protected booleanprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCopy()Gets a copy of this coordinates object.getEclipticCartesianCoordinates(Instant date, Vector3Q out) Gets ecliptic cartesian coordinates for the given date.getEclipticSphericalCoordinates(Instant date, Vector3Q out) Returns the ecliptic coordinates of the body in the out vector for the given date.getEquatorialCartesianCoordinates(Instant date, Vector3Q out) Gets equatorial cartesian coordinates for the given date.voidupdateReferences(Map<String, com.badlogic.ashley.core.Entity> index) Update the references in this coordinates object with the given index.Methods inherited from class AbstractOrbitCoordinates
copyParameters, doneLoading, getData, getInstance, getInstances, getOrbitName, getOrbitObject, setCenter, setCenterkm, setCenterpc, setCentre, setOrbitname, setOrbitName, setPeriodic, setScaling, toString, updateOwnerModifier and TypeMethodDescriptionprotected voidvoiddoneLoading(Object... params) Initializes the coordinates objectprotected PointCloudDatagetData()static <T extends AbstractOrbitCoordinates>
TgetInstance(Class<T> clazz) static List<AbstractOrbitCoordinates> com.badlogic.ashley.core.EntityvoidsetCenter(double[] center) voidsetCenterkm(double[] center) voidsetCenterpc(double[] center) voidsetCentre(double[] center) voidsetOrbitname(String orbitName) voidsetOrbitName(String orbitName) voidsetPeriodic(Boolean periodic) voidsetScaling(double scaling) toString()protected voidupdateOwner(Map<String, com.badlogic.ashley.core.Entity> index)
-
Constructor Details
-
HeliotropicOrbitCoordinates
public HeliotropicOrbitCoordinates()
-
-
Method Details
-
getEclipticCartesianCoordinates
Description copied from interface:IBodyCoordinatesGets ecliptic cartesian coordinates for the given date.- Parameters:
date- The instant.out- The out vector where the ecliptic cartesian coordinates will be.- Returns:
- The out vector for chaining, or null if the date is out of range, in case of non-elliptical orbits such as Gaia.
-
getEclipticSphericalCoordinates
Description copied from interface:IBodyCoordinatesReturns the ecliptic coordinates of the body in the out vector for the given date.- Parameters:
date- The instant.out- The out vector with the ecliptic coordinates in internal units.- Returns:
- The out vector for chaining.
-
getEquatorialCartesianCoordinates
Description copied from interface:IBodyCoordinatesGets equatorial cartesian coordinates for the given date.- Parameters:
date- The instant.out- The out vector where the equatorial cartesian coordinates will be.- Returns:
- The out vector for chaining, or null if the date is out of range, in case of non-elliptical orbits such as Gaia.
-
updateReferences
Description copied from interface:IBodyCoordinatesUpdate the references in this coordinates object with the given index.- Specified by:
updateReferencesin interfaceIBodyCoordinates- Overrides:
updateReferencesin classAbstractOrbitCoordinates- Parameters:
index- The index to use.
-
getCopy
Description copied from interface:IBodyCoordinatesGets a copy of this coordinates object.- Specified by:
getCopyin interfaceIBodyCoordinates- Overrides:
getCopyin classAbstractOrbitCoordinates- Returns:
- The copy.
-