Location& set_lat(double lat) noexcept { m_y = double_to_fix(lat); return *this; }
Location& set_lon(double lon) noexcept { m_x = double_to_fix(lon); return *this; }
/** * Create Location with given longitude and latitude. */ Location(const double lon, const double lat) : m_x(double_to_fix(lon)), m_y(double_to_fix(lat)) { }
Position& lat(double lat) { m_y = double_to_fix(lat); return *this; }
Position& lon(double lon) { m_x = double_to_fix(lon); return *this; }
explicit Position(double lon, double lat) : m_x(double_to_fix(lon)), m_y(double_to_fix(lat)) { }