Package skyview.geometry
Class Position
java.lang.Object
skyview.geometry.Position
This class represents a position in the sky. This
class is used to pass a position that may be represented in different
frames in different parts of a program. However since it creates
CoordinateSystem objects for each transformation it should not be
used to do coordinate transformations for large arrays of positions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Get the coordinates in the standard (J2000) frame.double[]
getCoordinates
(String frame) Get the coordinates in a specified frame.static void
Test the Position class
-
Constructor Details
-
Position
Define a position object in the standard (J2000) frame- Throws:
TransformationException
-
Position
Define a position object used a specified frame- Throws:
TransformationException
-
-
Method Details
-
getCoordinates
Get the coordinates in the standard (J2000) frame. Used to be called getPosition.- Throws:
TransformationException
-
getCoordinates
Get the coordinates in a specified frame. Used to be called getPosition.- Throws:
TransformationException
-
formatted
-
main
Test the Position class- Throws:
Exception
-