Maria GDK 4.6.0.140
Documentation of managed code in release branch
Loading...
Searching...
No Matches
TPG.GeoUnits.Utils Class Reference

Public Types

enum  Radials {
  N , NNE , NE , ENE ,
  E , ESE , SE , SSE ,
  S , SSW , SW , WSW ,
  W , WNW , NW , NNW
}
 

Public Member Functions

List< bool > DecodeBoolList (byte[] data)
 

Static Public Member Functions

static DateTime NormalizeDateTime (DateTime dateTime)
 
static double GridToTrue (UTMPos utm_ref, double dir)
 
static double TrueToGrid (UTMPos utm_ref, double dir)
 
static double DegToMils (double deg)
 
static double MilsToDeg (double mils)
 
static double GridToTrueMils (UTMPos utm_ref, double dir)
 
static double TrueToGridMils (UTMPos utm_ref, double dir)
 
static double NormalizeBearing (double bearing)
 
static double NormalizeBearing180 (double bearing)
 
static double NormalizeMils (double mils)
 
static FileInfo GetUniqueFile (string path, string name, string ext)
 
static string GetSector (double bearing)
 
static DirectoryInfo GetUniqueDirectory (string path, string name)
 
static string GetDMSPosString (GeoPos pos)
 
static string GetDMSPosString (double lat, double lon)
 
static string GetDMSSSPosString (double lat, double lon)
 
static string GetDDDDDDDPosString (double lat, double lon)
 
static bool ParseDMSPosString (string str, out GeoPos pos)
 
static bool ParseDMSSSPosString (string str, out GeoPos pos)
 
static string GetAfapdPosString (GeoPos pos, bool extPrecision, bool fixedFormat)
 
static int GetSectorInt (double bearing)
 
static string GetAfapdPosString (double lat, double lon, bool extPrecision, bool fixedFormat)
 
static bool ParseAfapdPosString (string s, out double lat, out double lon)
 
static string MariaMgrsToFacGrid (string mariaMgrs)
 
static string FacGridToMariaMgrs (string facGrid)
 
static string GetAfapdElevationString (double elevMeters, bool feet)
 
static string GetDistanceString (double distance, bool displayFormat)
 
static string MemSizeString (long bytes)
 
static string TruncateString (string s, int maxLength)
 
static string TruncateString (string s, int maxLength, string trail)
 
static string Join< T > (string separator, T[] values)
 
static string FormatDTG (DateTime dtg)
 
static bool ParseDTG (string str, out DateTime dtg)
 
static string FormatTime (TimeSpan ts, TimeUnit timeUnit)
 
static string FormatBytes (int bytes)
 
static double GetRangeInterval (double range, int intervals, RangeIntervals rangeIntervals)
 
static int GetMagnitude (double num)
 
static byte[] EncodeBoolList (List< bool > lst)
 
static string FixFileName (string name)
 
static TimeSpan ParseTimeSpanString (string str)
 
static string GetUnderlineString (string pattern, int length)
 
static string GetRadialDirection (double bearing, int radials)
 
static string NumberToRoman (int number)
 
static string GetColumnName (int index)
 
static string GetNextColumnName (IEnumerable< string > columns, int startIndex)
 
static bool SamePositions (List< GeoPos > positions, double tolerance=1e-9)
 
static double DistEllipse (double a, double b, double angleDeg)
 Calculates distance from ellipse center point to boundary at given angle.
 

Member Function Documentation

◆ DistEllipse()

static double TPG.GeoUnits.Utils.DistEllipse ( double  a,
double  b,
double  angleDeg 
)
inlinestatic

Calculates distance from ellipse center point to boundary at given angle.

Parameters
aMajor axis
bMinor axis
angleDegAngle in degrees, 0 degrees -> 0.5*a, +-90 -> 0.5*b
Returns

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