Commit 1d5a7eb1 authored by Dennis Nienhüser's avatar Dennis Nienhüser Committed by Friedrich W. H. Kossebau
Browse files

Provider faster implementations of the default case (radian unit)

parent ac2660dd
......@@ -179,6 +179,12 @@ void GeoDataCoordinates::geoCoordinates( qreal& lon, qreal& lat,
}
}
void GeoDataCoordinates::geoCoordinates(qreal &lon, qreal &lat) const
{
lon = d->m_lon;
lat = d->m_lat;
}
void GeoDataCoordinates::geoCoordinates( qreal& lon, qreal& lat, qreal& alt,
GeoDataCoordinates::Unit unit ) const
{
......@@ -186,6 +192,13 @@ void GeoDataCoordinates::geoCoordinates( qreal& lon, qreal& lat, qreal& alt,
alt = d->m_altitude;
}
void GeoDataCoordinates::geoCoordinates(qreal &lon, qreal &lat, qreal &alt) const
{
lon = d->m_lon;
lat = d->m_lat;
alt = d->m_altitude;
}
qreal GeoDataCoordinates::longitude( GeoDataCoordinates::Unit unit ) const
{
switch ( unit )
......
......@@ -157,9 +157,8 @@ class GEODATA_EXPORT GeoDataCoordinates
* @param unit units that lon and lat get measured in
* (default for Radian: north pole at pi/2, southpole at -pi/2)
*/
void geoCoordinates( qreal& lon, qreal& lat,
GeoDataCoordinates::Unit unit = GeoDataCoordinates::Radian )
const;
void geoCoordinates(qreal& lon, qreal& lat, GeoDataCoordinates::Unit unit) const;
void geoCoordinates(qreal& lon, qreal& lat) const;
/**
* @brief use this function to get the longitude, latitude and altitude
......@@ -170,9 +169,8 @@ class GEODATA_EXPORT GeoDataCoordinates
* @param unit units that lon and lat get measured in
* (default for Radian: north pole at pi/2, southpole at -pi/2)
*/
void geoCoordinates( qreal& lon, qreal& lat, qreal& alt,
GeoDataCoordinates::Unit unit = GeoDataCoordinates::Radian )
const;
void geoCoordinates(qreal& lon, qreal& lat, qreal& alt, GeoDataCoordinates::Unit unit) const;
void geoCoordinates(qreal& lon, qreal& lat, qreal& alt) const;
/**
* @brief set the longitude in a GeoDataCoordinates object
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment