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 doubleAzimuth of geodesic at point (degrees).private doubleLatitude of point (degrees).private doubleLatitude of center point of projection (degrees).private doubleLongitude of point (degrees).private doubleLongitude of center point of projection (degrees).private doubleReciprocal of azimuthal scale at point.private doubleEasting of point (meters).private doubleNorthing 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 TypeMethodDescriptiondoublegetAzi()Gets azimuth of geodesic at point (degrees).doublegetLat()Gets latitude of point (degrees).doublegetLat0()Gets latitude of center point of projection (degrees).doublegetLon()Gets longitude of point (degrees).doublegetLon0()Gets longitude of center point of projection (degrees).doublegetRk()Gets reciprocal of azimuthal scale at point.doublegetX()Gets easting of point (meters).doublegetY()Gets northing of point (meters).voidsetAzi(double azi) Sets azimuth of geodesic at point (degrees).voidsetLat(double lat) Sets latitude of point (degrees).voidsetLat0(double lat0) Sets latitude of center point of projection (degrees).voidsetLon(double lon) Sets longitude of point (degrees).voidsetLon0(double lon0) Sets longitude of center point of projection (degrees).voidsetRk(double rk) Sets reciprocal of azimuthal scale at point.voidsetX(double x) Sets easting of point (meters).voidsetY(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.
-