public interface Projection
| Modifier and Type | Field and Description |
|---|---|
static int |
LAT_INDEX
Index of the lattitude in the array containing the result of an unproject method.
|
static int |
LON_INDEX
Index of the longitude in the array containing the result of an unproject method.
|
static int |
X_INDEX
Index of the x coordinate in the array containing the result of a project method.
|
static int |
Y_INDEX
Index of the y coordinate in the array containing the result of a project method.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
project(double lonRad,
double latRad)
Project the given spherical coordinates into the Euclidean plane.
|
void |
project(double lonRad,
double latRad,
double[] resultXY)
See
project(double, double) with the result stored in the given array. |
double[] |
unproject(double x,
double y)
Reverse projection: we look for spherical coordinates from their projected coordinates
(
project(double, double). |
void |
unproject(double x,
double y,
double[] resultLonLat)
See
unproject(double, double) with the result stored in the given array. |
static final int LON_INDEX
static final int LAT_INDEX
static final int X_INDEX
static final int Y_INDEX
double[] project(double lonRad,
double latRad)
lonRad - longitude in radians (the accepted value range is implementation dependent)latRad - latitude in [-pi/2, pi/2] radiansX_INDEX and Y_INDEX respectively.
The range of possible value for x and y is implementation dependent.void project(double lonRad,
double latRad,
double[] resultXY)
project(double, double) with the result stored in the given array.lonRad - see project(double, double)latRad - see project(double, double)resultXY - array used to store the result. Must be of size >= 2.double[] unproject(double x,
double y)
project(double, double).x - the x coordinate of the projected spherical point we are looking for,
the accepted value range is implementation dependenty - the y coordinate of the projected spherical point we are looking for,
must be in [-2, 2].LON_INDEX and LAT_INDEX respectively.
Lat is in [-pi/2, pi/2] radians, lon is also in radians but it possible value range
is implementation dependent).void unproject(double x,
double y,
double[] resultLonLat)
unproject(double, double) with the result stored in the given array.x - unproject(double, double)y - unproject(double, double)resultLonLat - array used to store the result. Must be of size >= 2.Copyright © 2018 F.-X. Pineau, CDS, Observatoire Astronomique de Strasbourg, Universite de Strasbourg, CNRS. All Rights Reserved.