GeographicLib
1.43
|
Command line utility for rhumb line calculations. More...
#include <iostream>
#include <sstream>
#include <string>
#include <fstream>
#include <cmath>
#include <limits>
#include <GeographicLib/Rhumb.hpp>
#include <GeographicLib/DMS.hpp>
#include <GeographicLib/Utility.hpp>
#include "RhumbSolve.usage"
Go to the source code of this file.
Typedefs | |
typedef Math::real | real |
Functions | |
std::string | LatLonString (real lat, real lon, int prec, bool dms, char dmssep) |
std::string | AzimuthString (real azi, int prec, bool dms, char dmssep) |
int | main (int argc, char *argv[]) |
Command line utility for rhumb line calculations.
Copyright (c) Charles Karney (2014) charl and licensed under the MIT/X11 License. For more information, see es@k arney .comhttp://geographiclib.sourceforge.net/
See the man page for usage information.
Definition in file RhumbSolve.cpp.
typedef Math::real real |
Definition at line 32 of file RhumbSolve.cpp.
Definition at line 34 of file RhumbSolve.cpp.
References GeographicLib::DMS::Encode(), GeographicLib::DMS::LATITUDE, GeographicLib::DMS::LONGITUDE, and GeographicLib::DMS::NUMBER.
std::string AzimuthString | ( | real | azi, |
int | prec, | ||
bool | dms, | ||
char | dmssep | ||
) |
Definition at line 42 of file RhumbSolve.cpp.
References GeographicLib::DMS::AZIMUTH, GeographicLib::DMS::Encode(), and GeographicLib::DMS::NUMBER.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 47 of file RhumbSolve.cpp.
References AzimuthString(), GeographicLib::DMS::DecodeAzimuth(), GeographicLib::DMS::DecodeLatLon(), GeographicLib::Rhumb::Direct(), GeographicLib::Math::extra_digits(), GeographicLib::Rhumb::Inverse(), LatLonString(), GeographicLib::Rhumb::Line(), GeographicLib::Math::NaN(), GeographicLib::Utility::set_digits(), GeographicLib::Utility::str(), GeographicLib::Constants::WGS84_a(), and GeographicLib::Constants::WGS84_f().