Package com.irurueta.navigation.geodesic
Class GnomonicData
java.lang.Object
com.irurueta.navigation.geodesic.GnomonicData
The results of gnomonic projection.
This is used to return the results for a gnomonic projection of a point
(lat, lon) given a center point of projection (lat0,
lon0). The returned GnomonicData objects always include the
parameters provided to
Gnomonic.forward(double, double, double, double)
and Gnomonic.reverse(double, double, double, double)
and it always includes the fields x, y, azi, and
rk.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double
Azimuth of geodesic at point (degrees).private double
Latitude of point (degrees).private double
Latitude of center point of projection (degrees).private double
Longitude of point (degrees).private double
Longitude of center point of projection (degrees).private double
Reciprocal of azimuthal scale at point.private double
Easting of point (meters).private double
Northing of point (meters). -
Constructor Summary
ConstructorsConstructorDescriptionInitialize all the fields to Double.NaN.GnomonicData
(double lat0, double lon0, double lat, double lon, double x, double y, double azi, double rk) Constructor initializing all the fields for gnomonic projection of a point (lat, lon) given a center point of projection (lat0, lon0). -
Method Summary
Modifier and TypeMethodDescriptiondouble
getAzi()
Gets azimuth of geodesic at point (degrees).double
getLat()
Gets latitude of point (degrees).double
getLat0()
Gets latitude of center point of projection (degrees).double
getLon()
Gets longitude of point (degrees).double
getLon0()
Gets longitude of center point of projection (degrees).double
getRk()
Gets reciprocal of azimuthal scale at point.double
getX()
Gets easting of point (meters).double
getY()
Gets northing of point (meters).void
setAzi
(double azi) Sets azimuth of geodesic at point (degrees).void
setLat
(double lat) Sets latitude of point (degrees).void
setLat0
(double lat0) Sets latitude of center point of projection (degrees).void
setLon
(double lon) Sets longitude of point (degrees).void
setLon0
(double lon0) Sets longitude of center point of projection (degrees).void
setRk
(double rk) Sets reciprocal of azimuthal scale at point.void
setX
(double x) Sets easting of point (meters).void
setY
(double y) Sets northing of point (meters).
-
Field Details
-
lat0
private double lat0Latitude of center point of projection (degrees). -
lon0
private double lon0Longitude of center point of projection (degrees). -
lat
private double latLatitude of point (degrees). -
lon
private double lonLongitude of point (degrees). -
x
private double xEasting of point (meters). -
y
private double yNorthing of point (meters). -
azi
private double aziAzimuth of geodesic at point (degrees). -
rk
private double rkReciprocal of azimuthal scale at point.
-
-
Constructor Details
-
GnomonicData
public GnomonicData()Initialize all the fields to Double.NaN. -
GnomonicData
public GnomonicData(double lat0, double lon0, double lat, double lon, double x, double y, double azi, double rk) Constructor initializing all the fields for gnomonic projection of a point (lat, lon) given a center point of projection (lat0, lon0).- Parameters:
lat0
- latitude of center point of projection (degrees).lon0
- longitude of center point of projection (degrees).lat
- latitude of point (degrees).lon
- longitude of point (degrees).x
- easting of point (meters).y
- northing of point (meters).azi
- azimuth of geodesic at point (degrees).rk
- reciprocal of azimuthal scale at point.
-
-
Method Details
-
getLat0
public double getLat0()Gets latitude of center point of projection (degrees).- Returns:
- latitude of center point of projection.
-
setLat0
public void setLat0(double lat0) Sets latitude of center point of projection (degrees).- Parameters:
lat0
- latitude of center point of projection.
-
getLon0
public double getLon0()Gets longitude of center point of projection (degrees).- Returns:
- longitude of center point of projection.
-
setLon0
public void setLon0(double lon0) Sets longitude of center point of projection (degrees).- Parameters:
lon0
- longitude of center point of projection.
-
getLat
public double getLat()Gets latitude of point (degrees).- Returns:
- latitude of point.
-
setLat
public void setLat(double lat) Sets latitude of point (degrees).- Parameters:
lat
- latitude of point.
-
getLon
public double getLon()Gets longitude of point (degrees).- Returns:
- longitude of point.
-
setLon
public void setLon(double lon) Sets longitude of point (degrees).- Parameters:
lon
- longitude of point.
-
getX
public double getX()Gets easting of point (meters).- Returns:
- easting of point.
-
setX
public void setX(double x) Sets easting of point (meters).- Parameters:
x
- easting of point.
-
getY
public double getY()Gets northing of point (meters).- Returns:
- northing of point.
-
setY
public void setY(double y) Sets northing of point (meters).- Parameters:
y
- northing of point.
-
getAzi
public double getAzi()Gets azimuth of geodesic at point (degrees).- Returns:
- azimuth of geodesic at point.
-
setAzi
public void setAzi(double azi) Sets azimuth of geodesic at point (degrees).- Parameters:
azi
- azimuth of geodesic at point.
-
getRk
public double getRk()Gets reciprocal of azimuthal scale at point.- Returns:
- reciprocal of azimuthal scale at point.
-
setRk
public void setRk(double rk) Sets reciprocal of azimuthal scale at point.- Parameters:
rk
- reciprocal of azimuthal scale at point.
-