Class StaticCoordinates

java.lang.Object
gaiasky.util.coord.StaticCoordinates
All Implemented Interfaces:
IBodyCoordinates

public class StaticCoordinates extends Object implements IBodyCoordinates
  • Constructor Details Link icon

    • StaticCoordinates Link icon

      public StaticCoordinates()
  • Method Details Link icon

    • doneLoading Link icon

      public void doneLoading(Object... params)
      Description copied from interface: IBodyCoordinates
      Initializes the coordinates object
      Specified by:
      doneLoading in interface IBodyCoordinates
      Parameters:
      params - The parameter objects.
    • getEclipticSphericalCoordinates Link icon

      public Vector3b getEclipticSphericalCoordinates(Instant date, Vector3b out)
      Description copied from interface: IBodyCoordinates
      Returns the ecliptic coordinates of the body in the out vector for the given date.
      Specified by:
      getEclipticSphericalCoordinates in interface IBodyCoordinates
      Parameters:
      date - The instant.
      out - The out vector with the ecliptic coordinates in internal units.
      Returns:
      The out vector for chaining.
    • getEclipticCartesianCoordinates Link icon

      public Vector3b getEclipticCartesianCoordinates(Instant date, Vector3b out)
      Description copied from interface: IBodyCoordinates
      Gets ecliptic cartesian coordinates for the given date.
      Specified by:
      getEclipticCartesianCoordinates in interface IBodyCoordinates
      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.
    • getEquatorialCartesianCoordinates Link icon

      public Vector3b getEquatorialCartesianCoordinates(Instant date, Vector3b out)
      Description copied from interface: IBodyCoordinates
      Gets equatorial cartesian coordinates for the given date.
      Specified by:
      getEquatorialCartesianCoordinates in interface IBodyCoordinates
      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.
    • setTransformFunction Link icon

      public void setTransformFunction(String transformName)
    • setTransformName Link icon

      public void setTransformName(String transformName)
    • setTransformMatrix Link icon

      public void setTransformMatrix(double[] transformMatrix)
    • getPosition Link icon

      public Vector3b getPosition()
    • setPosition Link icon

      public void setPosition(Vector3b pos)
    • setPosition Link icon

      public void setPosition(double[] position)
    • setPositionKm Link icon

      public void setPositionKm(double[] position)
    • setPositionkm Link icon

      public void setPositionkm(double[] position)
    • setPositionEquatorial Link icon

      public void setPositionEquatorial(double[] position)
    • setPositionGalactic Link icon

      public void setPositionGalactic(double[] position)
    • setPositionEcliptic Link icon

      public void setPositionEcliptic(double[] position)
    • setPositionPc Link icon

      public void setPositionPc(double[] position)
    • setPositionpc Link icon

      public void setPositionpc(double[] position)
    • setEquatorial Link icon

      public void setEquatorial(double[] equatorial)
      Sets equatorial coordinates as a vector of [ra, de, distance]
      Parameters:
      equatorial - Vector with [ra, dec, distance] with angles in degrees and distance in parsecs
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • updateReferences Link icon

      public void updateReferences(Map<String,com.badlogic.ashley.core.Entity> index)
      Description copied from interface: IBodyCoordinates
      Update the references in this coordinates object with the given index.
      Specified by:
      updateReferences in interface IBodyCoordinates
      Parameters:
      index - The index to use.
    • getCopy Link icon

      public IBodyCoordinates getCopy()
      Description copied from interface: IBodyCoordinates
      Gets a copy of this coordinates object.
      Specified by:
      getCopy in interface IBodyCoordinates
      Returns:
      The copy.