Class Position

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

public class Position
extends java.lang.Object
Helper class that transforms various positional information into the internal position of the application.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  Position.PositionType  
  • Field Summary

    Fields
    Modifier and Type Field Description
    Vector3d gsposition  
  • Constructor Summary

    Constructors
    Constructor Description
    Position​(double a, java.lang.String unitA, double b, java.lang.String unitB, double c, java.lang.String unitC, Position.PositionType type)
    Works out the cartesian equatorial position in the Gaia Sandbox reference system.
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • gsposition

      public final Vector3d gsposition
  • Constructor Details

    • Position

      public Position​(double a, java.lang.String unitA, double b, java.lang.String unitB, double c, java.lang.String unitC, Position.PositionType type) throws java.lang.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:
      java.lang.RuntimeException - On negative distance or parallax