Class Position
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.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.
-
-
-
Field Detail
-
gsposition
public final Vector3d gsposition
-
-
Constructor Detail
-
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
-
-