Class ProperMotion

java.lang.Object
gaiasky.scene.component.ProperMotion
All Implemented Interfaces:
com.badlogic.ashley.core.Component, ICopy

public class ProperMotion extends Object implements com.badlogic.ashley.core.Component, ICopy
Proper motion component.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • epochJd

      public double epochJd
      Proper motion epoch in julian days. Defaults to J2015.5.
    • pm

      public com.badlogic.gdx.math.Vector3 pm
      Proper motion in cartesian coordinates [U/yr].
    • pmSph

      public com.badlogic.gdx.math.Vector3 pmSph
      MuAlpha [mas/yr], Mudelta [mas/yr], radvel [km/s].
    • hasPm

      public boolean hasPm
      This flag is up if pm is not null, and it is not zero.
  • Constructor Details

    • ProperMotion

      public ProperMotion()
  • Method Details

    • setEpochJd

      public void setEpochJd(Double epochJd)
    • setEpochYear

      public void setEpochYear(Double epochYear)
      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)
      Specified by:
      getCopy in interface ICopy