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