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
static double Decode(System::String^dms, [System::Runtime::InteropServices::Out] Flag%ind)
Matrix3f m
return int(ret)+1
static const double lat
static double DecodeAzimuth(System::String^azistr)
static System::String Encode(double angle, Component trailing, unsigned prec, Flag ind, char dmssep)
static void DecodeLatLon(System::String^dmsa, System::String^dmsb, [System::Runtime::InteropServices::Out] double%lat, [System::Runtime::InteropServices::Out] double%lon, bool longfirst)
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
RealScalar s
static double Decode(double d, double m, double s)
Definition: DMS.h:194
.NET wrapper for GeographicLib::DMS.
Definition: DMS.h:29
static void Encode(double ang, [System::Runtime::InteropServices::Out] double%d, [System::Runtime::InteropServices::Out] double%m)
Definition: DMS.h:310
static const double lon
static double DecodeAngle(System::String^angstr)


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:41:59