public interface WorldCoordinateConverter
Modifier and Type | Method and Description |
---|---|
double |
getEquinox()
Return the equinox used for coordinates (usually the equionx of the image)
|
double |
getHeight()
Return the image height in pixels.
|
double |
getHeightInDeg()
return the height in deg
|
Point2D.Double |
getImageCenter()
Return the image center coordinates in pixels (image coordinates).
|
Point2D.Double |
getWCSCenter()
Return the center RA,Dec coordinates in degrees.
|
double |
getWidth()
Return the image width in pixels.
|
double |
getWidthInDeg()
return the width in deg
|
void |
imageToWorldCoords(Point2D.Double p,
boolean isDistance)
Convert the given image coordinates to world coordinates degrees in the equinox
of the current image.
|
boolean |
isWCS()
Return true if world coordinates conversion is available.
|
void |
worldToImageCoords(Point2D.Double p,
boolean isDistance)
Convert the given world coordinates (degrees, in the equinox of the current image)
to image coordinates.
|
boolean isWCS()
double getEquinox()
void imageToWorldCoords(Point2D.Double p, boolean isDistance)
p
- The point to convert.isDistance
- True if p should be interpreted as a distance instead
of a point.void worldToImageCoords(Point2D.Double p, boolean isDistance)
p
- The point to convert.isDistance
- True if p should be interpreted as a distance instead
of a point.Point2D.Double getWCSCenter()
double getWidthInDeg()
double getHeightInDeg()
Point2D.Double getImageCenter()
double getWidth()
double getHeight()
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.