Struct LatLng
Provides support for Latitude/Longitude logic
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.dll
Syntax
public struct LatLng : INamed
Constructors
LatLng(Double, Double, String)
Declaration
public LatLng(double lat, double lng, string name = null)
Parameters
Type |
Name |
Description |
System.Double |
lat |
|
System.Double |
lng |
|
System.String |
name |
|
LatLng(String, String)
Declaration
public LatLng(string val, string name = null)
Parameters
Type |
Name |
Description |
System.String |
val |
|
System.String |
name |
|
Fields
DEG_TO_RAD
Declaration
public const double DEG_TO_RAD = 0.017453292519943295
Field Value
Type |
Description |
System.Double |
|
EARTH_CIRCUMFERENCE_KM
Declaration
public const double EARTH_CIRCUMFERENCE_KM = 40030.173592041145
Field Value
Type |
Description |
System.Double |
|
EARTH_DIAMETER_KM
Declaration
public const double EARTH_DIAMETER_KM = 12742
Field Value
Type |
Description |
System.Double |
|
EARTH_RADIUS_KM
Declaration
public const double EARTH_RADIUS_KM = 6371
Field Value
Type |
Description |
System.Double |
|
MAX_LAT
Declaration
public const double MAX_LAT = 90
Field Value
Type |
Description |
System.Double |
|
MAX_LNG
Declaration
public const double MAX_LNG = 180
Field Value
Type |
Description |
System.Double |
|
MIN_LAT
Declaration
public const double MIN_LAT = -90
Field Value
Type |
Description |
System.Double |
|
MIN_LNG
Declaration
public const double MIN_LNG = -180
Field Value
Type |
Description |
System.Double |
|
Properties
Lat
Declaration
public double Lat { get; }
Property Value
Type |
Description |
System.Double |
|
Lng
Declaration
public double Lng { get; }
Property Value
Type |
Description |
System.Double |
|
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
RadLat
Declaration
public double RadLat { get; }
Property Value
Type |
Description |
System.Double |
|
RadLng
Declaration
public double RadLng { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
ComponentToString(Double)
Declaration
public string ComponentToString(double degVal)
Parameters
Type |
Name |
Description |
System.Double |
degVal |
|
Returns
Type |
Description |
System.String |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
HaversineEarthDistanceKm(LatLng)
Declaration
public double HaversineEarthDistanceKm(LatLng other)
Parameters
Type |
Name |
Description |
LatLng |
other |
|
Returns
Type |
Description |
System.Double |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Implements
Extension Methods