public class Position extends Object
Constructor and 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 and 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
TransformationException
public Position(double l, double b, String frame) throws TransformationException
TransformationException
public double[] getCoordinates() throws TransformationException
TransformationException
public double[] getCoordinates(String frame) throws TransformationException
TransformationException