Class Position

java.lang.Object
gaiasky.util.units.Position

public class Position extends Object
Helper class that transforms various positional information into the internal position of the application.
  • Field Details

    • gsposition

      public final Vector3d gsposition
  • Constructor Details

    • Position

      public Position(double a, String unitA, double b, String unitB, double c, String unitC, Position.PositionType type) throws RuntimeException
      Works out the cartesian equatorial position in the Gaia Sandbox reference system. The units of the result are parsecs.
      Parameters:
      a -
      unitA -
      b -
      unitB -
      c -
      unitC -
      type -
      Throws:
      RuntimeException - On negative distance or parallax