public interface WorldCoordinates extends Coordinates
Modifier and Type | Method and Description |
---|---|
WorldCoordinates[] |
box(double radius)
Given a radius in arcmin, return an array {pos1, pos2} with the 2 endpoints
that form a box with center at "this" position.
|
double[] |
center(WorldCoordinates pos1,
WorldCoordinates pos2)
Given the endpoints of a box (pos1, pos2), return an array containing the
center ra, dec in degrees, as well as the width, height, and radius of the
box in arcmin.
|
double[] |
dispos(WorldCoordinates pos)
return the distance between this position and the given one in arcmin
and also set the position angle
|
String[] |
format()
Format RA and DEC in h:m:s [+-]d:m:s format in J2000
and return them as a 2 element String array.
|
String[] |
format(double equinox)
Format RA and DEC in h:m:s [+-]d:m:s format in the given equinox
and return them as a 2 element String array.
|
DMS |
getDec()
return the DEC value in J2000
|
double |
getDecDeg()
return the DEC value in deg J2000
|
HMS |
getRA()
return the RA value in J2000
|
double[] |
getRaDec(double equinox)
Return RA and DEC in degrees as an array of 2 doubles {ra, dec} in the given equinox.
|
double |
getRaDeg()
return the RA value in deg J2000
|
String |
toString()
Return the coordinates as a string in h:m:s [+-]d:m:s format
|
dist, getCoordinateSystemName, getX, getY
HMS getRA()
DMS getDec()
double getRaDeg()
double getDecDeg()
String toString()
toString
in interface Coordinates
toString
in class Object
String[] format(double equinox)
String[] format()
double[] getRaDec(double equinox)
double[] dispos(WorldCoordinates pos)
pos
- The other point.WorldCoordinates[] box(double radius)
radius
- The radius in arcmin.double[] center(WorldCoordinates pos1, WorldCoordinates pos2)
pos1
- The first endpoint of the box.pos1
- The second endpoint of the box.Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.