Class AbstractOrbitCoordinates
java.lang.Object
gaiasky.util.coord.AbstractOrbitCoordinates
- All Implemented Interfaces:
IBodyCoordinates
- Direct Known Subclasses:
AbstractVSOP87, ChebyshevEphemeris, HeliotropicOrbitCoordinates, OrbitLintCoordinates, PlutoCoordinates, VSOP2000
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Vector3Dprotected com.badlogic.ashley.core.Entityprotected static final List<AbstractOrbitCoordinates> protected static final Logger.Logprotected Stringprotected com.badlogic.ashley.core.Entityprotected booleanprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoiddoneLoading(Object... params) Initializes the coordinates objectgetCopy()Gets a copy of this coordinates object.protected PointCloudDatagetData()static <T extends AbstractOrbitCoordinates>
TgetInstance(Class<T> clazz) static List<AbstractOrbitCoordinates> voidsetCenter(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) voidupdateReferences(Map<String, com.badlogic.ashley.core.Entity> index) Update the references in this coordinates object with the given index.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IBodyCoordinates
getEclipticCartesianCoordinates, getEclipticSphericalCoordinates, getEquatorialCartesianCoordinatesModifier and TypeMethodDescriptiongetEclipticCartesianCoordinates(Instant instant, Vector3Q out) Gets ecliptic cartesian coordinates for the given date.getEclipticSphericalCoordinates(Instant instant, Vector3Q out) Returns the ecliptic coordinates of the body in the out vector for the given date.getEquatorialCartesianCoordinates(Instant instant, Vector3Q out) Gets equatorial cartesian coordinates for the given date.
-
Field Details
-
logger
-
instances
-
orbitName
-
periodic
protected boolean periodic -
center
-
entity
protected com.badlogic.ashley.core.Entity entity -
owner
protected com.badlogic.ashley.core.Entity owner -
scaling
protected double scaling
-
-
Constructor Details
-
AbstractOrbitCoordinates
protected AbstractOrbitCoordinates()
-
-
Method Details
-
getInstances
-
getInstance
-
doneLoading
Description copied from interface:IBodyCoordinatesInitializes the coordinates object- Specified by:
doneLoadingin interfaceIBodyCoordinates- Parameters:
params- The parameter objects.
-
getOrbitName
-
setOrbitName
-
setOrbitname
-
setPeriodic
-
setScaling
public void setScaling(double scaling) -
toString
-
setCentre
public void setCentre(double[] center) -
setCenter
public void setCenter(double[] center) -
setCenterkm
public void setCenterkm(double[] center) -
setCenterpc
public void setCenterpc(double[] center) -
getData
-
updateOwner
-
copyParameters
-
updateReferences
Description copied from interface:IBodyCoordinatesUpdate the references in this coordinates object with the given index.- Specified by:
updateReferencesin interfaceIBodyCoordinates- Parameters:
index- The index to use.
-
getCopy
Description copied from interface:IBodyCoordinatesGets a copy of this coordinates object.- Specified by:
getCopyin interfaceIBodyCoordinates- Returns:
- The copy.
-