Package com.irurueta.navigation.geodesic
Class GeodesicData
java.lang.Object
com.irurueta.navigation.geodesic.GeodesicData
The results of geodesic calculations.
This is used to return the results for a geodesic between point 1 (lat1, lon1)
and point 2 (lat2, lon2).
Fields that have not been set will be filled with Double.NaN.
The returned GeodesicData objects always include the parameters provided to
Geodesic.direct(double, double, double, double)
and
Geodesic.inverse(double, double, double, double)
and it always includes the field
a12.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double
Arc length on the auxiliary sphere between point 1 and point 2 (degrees).private double
Area under the geodesic (meters2).private double
Azimuth at point 1 (degrees).private double
Azimuth at point 2 (degrees).private double
Latitude of point 1 (degrees).private double
Latitude of point 2 (degrees).private double
Longitude of point 1 (degrees).private double
Longitude of point 2 (degrees).private double
Reduced length of geodesic (meters).private double
Distance between point 1 and point 2 (meters).private double
Geodesic scale of point 2 relative to point 1 (dimensionless).private double
Geodesic scale of point 1 relative to point 2 (dimensionless). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getA12()
Gets arc length on the auxiliary sphere between point 1 and point 2 (degrees).double
Gets area under the geodesic (meter2).double
getAzi1()
Gets azimuth at point 1 (degrees).double
getAzi2()
Gets azimuth at point 2 (degrees).double
getLat1()
Gets latitude of point 1 (degrees).double
getLat2()
Gets latitude of point 2 (degrees).double
getLon1()
Gets longitude of point 1 (degrees).double
getLon2()
Gets longitude of point 2 (degrees).double
getM12()
Gets reduced length of geodesic (meters).double
getS12()
Gets distance between point 1 and point 2 (meters).double
Gets geodesic scale of point 2 relative to point 1 (dimensionless).double
Gets geodesic scale of point 1 relative to point 2 (dimensionless).void
setA12
(double a12) Sets arc length on the auxiliary sphere between point 1 and point 2 (degrees).void
setAreaS12
(double areaS12) Sets area under the geodesic (meter2).void
setAzi1
(double azi1) Sets azimuth at point 1 (degrees).void
setAzi2
(double azi2) Sets azimuth at point 2 (degrees).void
setLat1
(double lat1) Sets latitude of point 1 (degrees).void
setLat2
(double lat2) Sets latitude of point 2 (degrees).void
setLon1
(double lon1) Sets longitude of point 1 (degrees).void
setLon2
(double lon2) Sets longitude of point 2 (degrees).void
setM12
(double m12) Sets reduced length of geodesic (meters).void
setS12
(double s12) Sets distance between point 1 and point 2 (meters).void
setScaleM12
(double scaleM12) Sets geodesic scale of point 2 relative to point 1 (dimensionless).void
setScaleM21
(double scaleM21) Sets geodesic scale of point 1 relative to point 2 (dimensionless).
-
Field Details
-
lat1
private double lat1Latitude of point 1 (degrees). -
lon1
private double lon1Longitude of point 1 (degrees). -
azi1
private double azi1Azimuth at point 1 (degrees). -
lat2
private double lat2Latitude of point 2 (degrees). -
lon2
private double lon2Longitude of point 2 (degrees). -
azi2
private double azi2Azimuth at point 2 (degrees). -
s12
private double s12Distance between point 1 and point 2 (meters). -
a12
private double a12Arc length on the auxiliary sphere between point 1 and point 2 (degrees). -
m12
private double m12Reduced length of geodesic (meters). -
scaleM12
private double scaleM12Geodesic scale of point 2 relative to point 1 (dimensionless). -
scaleM21
private double scaleM21Geodesic scale of point 1 relative to point 2 (dimensionless). -
areaS12
private double areaS12Area under the geodesic (meters2).
-
-
Constructor Details
-
GeodesicData
public GeodesicData()Constructor. Initialize all the fields to Double.NaN.
-
-
Method Details
-
getLat1
public double getLat1()Gets latitude of point 1 (degrees).- Returns:
- latitude of point 1.
-
setLat1
public void setLat1(double lat1) Sets latitude of point 1 (degrees).- Parameters:
lat1
- latitude of point 1.
-
getLon1
public double getLon1()Gets longitude of point 1 (degrees).- Returns:
- longitude of point 1.
-
setLon1
public void setLon1(double lon1) Sets longitude of point 1 (degrees).- Parameters:
lon1
- longitude of point 1.
-
getAzi1
public double getAzi1()Gets azimuth at point 1 (degrees).- Returns:
- azimuth at point 1.
-
setAzi1
public void setAzi1(double azi1) Sets azimuth at point 1 (degrees).- Parameters:
azi1
- azimuth at point 1.
-
getLat2
public double getLat2()Gets latitude of point 2 (degrees).- Returns:
- latitude of point 2.
-
setLat2
public void setLat2(double lat2) Sets latitude of point 2 (degrees).- Parameters:
lat2
- latitude of point 2.
-
getLon2
public double getLon2()Gets longitude of point 2 (degrees).- Returns:
- longitude of point 2.
-
setLon2
public void setLon2(double lon2) Sets longitude of point 2 (degrees).- Parameters:
lon2
- longitude of point 2.
-
getAzi2
public double getAzi2()Gets azimuth at point 2 (degrees).- Returns:
- azimuth at point 2.
-
setAzi2
public void setAzi2(double azi2) Sets azimuth at point 2 (degrees).- Parameters:
azi2
- azimuth at point 2.
-
getS12
public double getS12()Gets distance between point 1 and point 2 (meters).- Returns:
- distance between point 1 and point 2.
-
setS12
public void setS12(double s12) Sets distance between point 1 and point 2 (meters).- Parameters:
s12
- distance between point 1 and point 2.
-
getA12
public double getA12()Gets arc length on the auxiliary sphere between point 1 and point 2 (degrees).- Returns:
- arc length on the auxiliary sphere between point 1 and point 2.
-
setA12
public void setA12(double a12) Sets arc length on the auxiliary sphere between point 1 and point 2 (degrees).- Parameters:
a12
- arc length on the auxiliary sphere between point 1 and point 2.
-
getM12
public double getM12()Gets reduced length of geodesic (meters).- Returns:
- reduced length of geodesic.
-
setM12
public void setM12(double m12) Sets reduced length of geodesic (meters).- Parameters:
m12
- reduced length of geodesic.
-
getScaleM12
public double getScaleM12()Gets geodesic scale of point 2 relative to point 1 (dimensionless).- Returns:
- geodesic scale of point 2 relative to point 1.
-
setScaleM12
public void setScaleM12(double scaleM12) Sets geodesic scale of point 2 relative to point 1 (dimensionless).- Parameters:
scaleM12
- geodesic scale of point 2 relative to point 1.
-
getScaleM21
public double getScaleM21()Gets geodesic scale of point 1 relative to point 2 (dimensionless).- Returns:
- geodesic scale of point 1 relative to point 2.
-
setScaleM21
public void setScaleM21(double scaleM21) Sets geodesic scale of point 1 relative to point 2 (dimensionless).- Parameters:
scaleM21
- geodesic scale of point 1 relative to point 2.
-
getAreaS12
public double getAreaS12()Gets area under the geodesic (meter2).- Returns:
- area under the geodesic.
-
setAreaS12
public void setAreaS12(double areaS12) Sets area under the geodesic (meter2).- Parameters:
areaS12
- area under the geodesic.
-