public class Position
extends java.lang.Object
| Constructor and Description |
|---|
Position(double l,
double b)
Define a position object in the standard (J2000) frame
|
Position(double l,
double b,
java.lang.String frame)
Define a position object used a specified frame
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatted(java.lang.String coords,
int precision,
boolean sexagesimal) |
double[] |
getCoordinates()
Get the coordinates in the standard (J2000) frame.
|
double[] |
getCoordinates(java.lang.String frame)
Get the coordinates in a specified frame.
|
static void |
main(java.lang.String[] args)
Test the Position class
|
public Position(double l,
double b)
throws TransformationException
TransformationExceptionpublic Position(double l,
double b,
java.lang.String frame)
throws TransformationException
TransformationExceptionpublic double[] getCoordinates()
throws TransformationException
TransformationExceptionpublic double[] getCoordinates(java.lang.String frame)
throws TransformationException
TransformationExceptionpublic java.lang.String formatted(java.lang.String coords,
int precision,
boolean sexagesimal)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception