Package gaiasky.scene.component
Class ProperMotion
java.lang.Object
gaiasky.scene.component.ProperMotion
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
,ICopy
-
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 equatorial internal 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
initPm()
void
setEpochJd
(Double epochJd) void
setEpochYear
(Double epochYear) Sets the epoch as a Gregorian calendar year and a fraction (i.e.void
setMuAlpha
(Double muAlpha) void
setMuAlphaMasYr
(Double muAlpha) void
setMuDelta
(Double muDelta) void
setMuDeltaMasYr
(Double muDelta) void
void
void
void
-
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 equatorial internal 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.
-
initPm
public void initPm() -
setMuAlpha
-
setMuAlphaMasYr
-
setMuDelta
-
setMuDeltaMasYr
-
setVr
-
setVrKms
-
setRadialVelocity
-
setRadialVelocityKms
-
getCopy
public com.badlogic.ashley.core.Component getCopy(com.badlogic.ashley.core.Engine engine)
-