Package gaiasky.util.units
Class Position
java.lang.Object
gaiasky.util.units.Position
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPosition
(double a, String unitA, double b, String unitB, double c, String unitC, Position.PositionType type) Works out the cartesian equatorial position in the Gaia Sandbox reference system. -
Method Summary
-
Field Details
-
realPosition
-
-
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.- Throws:
RuntimeException
- On negative distance or parallax
-