supercell-wx/scwx-qt/source/scwx/qt/util/geographic_lib.cpp
Dan Paulat 90c8c0183a USe a common default geodesic object instead of duplicate copies.
All used functions are constant, and don't require unique instantiations for thread safety.
2023-02-19 15:16:34 -06:00

24 lines
430 B
C++

#include <scwx/qt/util/geographic_lib.hpp>
namespace scwx
{
namespace qt
{
namespace util
{
namespace GeographicLib
{
const ::GeographicLib::Geodesic& DefaultGeodesic()
{
static const ::GeographicLib::Geodesic geodesic_ {
::GeographicLib::Constants::WGS84_a(),
::GeographicLib::Constants::WGS84_f()};
return geodesic_;
}
} // namespace GeographicLib
} // namespace util
} // namespace qt
} // namespace scwx