Package gaiasky.scene.component
Class ProperMotion
java.lang.Object
gaiasky.scene.component.ProperMotion
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
,ICopy
Proper motion component.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
Proper motion epoch in julian days.boolean
This flag is up if pm is not null, and it is not zero.com.badlogic.gdx.math.Vector3
Proper motion in cartesian coordinates [U/yr].com.badlogic.gdx.math.Vector3
MuAlpha [mas/yr], Mudelta [mas/yr], radvel [km/s]. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.ashley.core.Component
getCopy
(com.badlogic.ashley.core.Engine engine) void
setEpochJd
(Double epochJd) void
setEpochYear
(Double epochYear) Sets the epoch as a Gregorian calendar year and a fraction (i.e.
-
Field Details
-
epochJd
public double epochJdProper motion epoch in julian days. Defaults to J2015.5. -
pm
public com.badlogic.gdx.math.Vector3 pmProper motion in cartesian coordinates [U/yr]. -
pmSph
public com.badlogic.gdx.math.Vector3 pmSphMuAlpha [mas/yr], Mudelta [mas/yr], radvel [km/s]. -
hasPm
public boolean hasPmThis flag is up if pm is not null, and it is not zero.
-
-
Constructor Details
-
ProperMotion
public ProperMotion()
-
-
Method Details
-
setEpochJd
-
setEpochYear
Sets the epoch as a Gregorian calendar year and a fraction (i.e. 2015.5).- Parameters:
epochYear
- The Gregorian calendar year and fraction, as a double.
-
getCopy
public com.badlogic.ashley.core.Component getCopy(com.badlogic.ashley.core.Engine engine)
-