GeographicLib: RhumbSolve.cpp File Reference (original) (raw)

Command line utility for rhumb line calculations. More...

#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
#include <cmath>
#include <limits>
#include <[GeographicLib/Rhumb.hpp](Rhumb%5F8hpp%5Fsource.html)>
#include <[GeographicLib/DMS.hpp](DMS%5F8hpp%5Fsource.html)>
#include <[GeographicLib/Utility.hpp](Utility%5F8hpp%5Fsource.html)>
#include "RhumbSolve.usage"

Go to the source code of this file.

Functions
std::string LatLonString (real lat, real lon, int prec, bool dms, char dmssep, bool longfirst)
std::string AzimuthString (real azi, int prec, bool dms, char dmssep)
int main (int argc, const char *const argv[])

Command line utility for rhumb line calculations.

Copyright (c) Charles Karney (2014-2023) karne.nosp@m.y@al.nosp@m.um.mi.nosp@m.t.ed.nosp@m.u and licensed under the MIT/X11 License. For more information, see https://geographiclib.sourceforge.io/

See the man page for usage information.

Definition in file RhumbSolve.cpp.

real

LatLonString()

std::string LatLonString ( real lat,
real lon,
int prec,
bool dms,
char dmssep,
bool longfirst )

AzimuthString()

std::string AzimuthString ( real azi,
int prec,
bool dms,
char dmssep )

main()

int main ( int argc,
const char *const _argv_[] )

Definition at line 48 of file RhumbSolve.cpp.

References GeographicLib::Rhumb::ALL, AzimuthString(), GeographicLib::DMS::DecodeAzimuth(), GeographicLib::DMS::DecodeLatLon(), GeographicLib::Math::extra_digits(), GeographicLib::Rhumb::Inverse(), LatLonString(), GeographicLib::Rhumb::Line(), GeographicLib::Rhumb::LONG_UNROLL, GeographicLib::Math::NaN(), GeographicLib::Math::qd, GeographicLib::Utility::set_digits(), GeographicLib::Utility::str(), GeographicLib::Constants::WGS84_a(), and GeographicLib::Constants::WGS84_f().