LatLng
Declaration
public struct LatLng : ValueType, IEquatable<LatLng>Summary
The LatLng struct represents a Latitude and Longitude pair and provides functionality for comparing LatLng instances with each other.
Constructors
Constructor
public LatLng(LocationInfo locationInfo)
Overload
public LatLng(double latitude, double longtitude)
Properties
| Name | Type | Summary |
|---|---|---|
| readonly Latitude | double | - |
| readonly Longitude | double | - |
Methods
| Name | Type | Summary |
|---|---|---|
| Add | LatLng | @param bearing Bearing in degrees, clockwise from north @param distance Distance travelled in meters |
| static Bearing | double | Calculates the initial bearing (sometimes referred to as forward azimuth) which if followed in a straight line along a great-circle arc will take you from the l1 to l2 points. @returns Initial bearing in degrees |
| Distance | double | Calculates "as-the-crow-flies" distance between points using the Haversine formula. @returns Distance between points in meters. |
| Equals | bool | - |
| GetHashCode | int | - |
| ToDegrees | LatLng | - |
| ToRadian | LatLng | - |
| ToString | string | - |
Operators
| Name | Type | Summary |
|---|---|---|
| static != | bool | - |
| static == | bool | - |
Relationships
implements: System.IEquatable