DMS.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 namespace NETGeographicLib
14 {
29 public ref class DMS
30 {
31 public:
36  enum class Flag {
41  NONE = 0,
46  LATITUDE = 1,
51  LONGITUDE = 2,
57  AZIMUTH = 3,
62  NUMBER = 4,
63  };
64 
68  enum class Component {
73  DEGREE = 0,
78  MINUTE = 1,
83  SECOND = 2,
84  };
85 
179  static double Decode(System::String^ dms,
180  [System::Runtime::InteropServices::Out] Flag% ind);
181 
194  static double Decode(double d, double m, double s )
195  { return d + (m + s/double(60))/double(60); }
196 
220  static void DecodeLatLon(System::String^ dmsa, System::String^ dmsb,
221  [System::Runtime::InteropServices::Out] double% lat,
222  [System::Runtime::InteropServices::Out] double% lon,
223  bool longfirst );
224 
236  static double DecodeAngle(System::String^ angstr);
237 
250  static double DecodeAzimuth(System::String^ azistr);
251 
279  static System::String^ Encode(double angle, Component trailing, unsigned prec,
280  Flag ind, char dmssep );
281 
300  static System::String^ Encode(double angle, unsigned prec, Flag ind,
301  char dmssep );
302 
310  static void Encode(double ang,
311  [System::Runtime::InteropServices::Out] double% d,
312  [System::Runtime::InteropServices::Out] double% m)
313  {
314  d = int(ang); m = 60 * (ang - d);
315  }
316 
325  static void Encode(double ang,
326  [System::Runtime::InteropServices::Out] double% d,
327  [System::Runtime::InteropServices::Out] double% m,
328  [System::Runtime::InteropServices::Out] double% s)
329  {
330  d = int(ang); ang = 60 * (ang - d);
331  m = int(ang); s = 60 * (ang - m);
332  }
333 };
334 } // namespace NETGeographicLib
ind
std::vector< int > ind
Definition: Slicing_stdvector_cxx11.cpp:1
gtsam.examples.DogLegOptimizerExample.int
int
Definition: DogLegOptimizerExample.py:111
NETGeographicLib::DMS::Encode
static void Encode(double ang, [System::Runtime::InteropServices::Out] double% d, [System::Runtime::InteropServices::Out] double% m, [System::Runtime::InteropServices::Out] double% s)
Definition: DMS.h:325
s
RealScalar s
Definition: level1_cplx_impl.h:126
d
static const double d[K][N]
Definition: igam.h:11
NETGeographicLib::DMS::Encode
static void Encode(double ang, [System::Runtime::InteropServices::Out] double% d, [System::Runtime::InteropServices::Out] double% m)
Definition: DMS.h:310
NETGeographicLib::DMS::Component::DEGREE
@ DEGREE
NETGeographicLib::DMS::Flag::AZIMUTH
@ AZIMUTH
NETGeographicLib::DMS::Flag::LATITUDE
@ LATITUDE
NETGeographicLib::DMS::Encode
static System::String Encode(double angle, Component trailing, unsigned prec, Flag ind, char dmssep)
Definition: dotnet/NETGeographicLib/DMS.cpp:82
NETGeographicLib::DMS::Flag
Flag
Definition: DMS.h:36
NETGeographicLib::DMS::Flag::NONE
@ NONE
NETGeographicLib::DMS::DecodeAngle
static double DecodeAngle(System::String^ angstr)
Definition: dotnet/NETGeographicLib/DMS.cpp:56
NETGeographicLib::DMS::Component
Component
Definition: DMS.h:68
NETGeographicLib::DMS::Decode
static double Decode(double d, double m, double s)
Definition: DMS.h:194
NETGeographicLib::DMS::DecodeAzimuth
static double DecodeAzimuth(System::String^ azistr)
Definition: dotnet/NETGeographicLib/DMS.cpp:69
m
Matrix3f m
Definition: AngleAxis_mimic_euler.cpp:1
NETGeographicLib::DMS::Flag::NUMBER
@ NUMBER
NETGeographicLib::DMS::DecodeLatLon
static void DecodeLatLon(System::String^ dmsa, System::String^ dmsb, [System::Runtime::InteropServices::Out] double% lat, [System::Runtime::InteropServices::Out] double% lon, bool longfirst)
Definition: dotnet/NETGeographicLib/DMS.cpp:36
NETGeographicLib::DMS::Decode
static double Decode(System::String^ dms, [System::Runtime::InteropServices::Out] Flag% ind)
Definition: dotnet/NETGeographicLib/DMS.cpp:19
NETGeographicLib::DMS::Component::SECOND
@ SECOND
NETGeographicLib::DMS::Flag::LONGITUDE
@ LONGITUDE
NETGeographicLib::DMS::Component::MINUTE
@ MINUTE
lon
static const double lon
Definition: testGeographicLib.cpp:34
NETGeographicLib
Definition: Accumulator.h:13
lat
static const double lat
Definition: testGeographicLib.cpp:34
NETGeographicLib::DMS
.NET wrapper for GeographicLib::DMS.
Definition: DMS.h:29


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:13