Static Public Member Functions | Private Member Functions | List of all members
NETGeographicLib::Utility Class Reference

Utility library. More...

#include <NETGeographicLib.h>

Static Public Member Functions

static double FractionalYear (System::String^ s)
 

Private Member Functions

 Utility ()
 

Detailed Description

Utility library.

This class only exposes the GeographicLib::Utility::fractionalyear function.

Definition at line 270 of file NETGeographicLib.h.

Constructor & Destructor Documentation

◆ Utility()

NETGeographicLib::Utility::Utility ( )
inlineprivate

Definition at line 274 of file NETGeographicLib.h.

Member Function Documentation

◆ FractionalYear()

double Utility::FractionalYear ( System::String^  s)
static

Convert a string representing a date to a fractional year.

Parameters
[in]sthe string to be converted.
Exceptions
GeographicErrif s can't be interpreted as a date.
Returns
the fractional year.

The string is first read as an ordinary number (e.g., 2010 or 2012.5); if this is successful, the value is returned. Otherwise the string should be of the form yyyy-mm or yyyy-mm-dd and this is converted to a number with 2010-01-01 giving 2010.0 and 2012-07-03 giving 2012.5.

Definition at line 53 of file NETGeographicLib.cpp.


The documentation for this class was generated from the following files:


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