Class GeoLocationExtensions
Extension methods for the GeoLocation struct
Assembly: Meadow.Units.dll
View Source
Declaration
public static class GeoLocationExtensions
Methods
DistanceTo(GeoLocation, GeoLocation)
Calculates the distance to another GeoLocation
View Source
Declaration
[Pure]
public static Length DistanceTo(this GeoLocation self, GeoLocation other)
Returns
Parameters
Type | Name | Description |
---|---|---|
Meadow.Units.GeoLocation | self | A Geolocation |
Meadow.Units.GeoLocation | other | A second GeoLocation |
BearingTo(GeoLocation, GeoLocation)
Calculates the bearing to another GeoLocation
View Source
Declaration
[Pure]
public static Azimuth BearingTo(this GeoLocation self, GeoLocation other)
Returns
Parameters
Type | Name | Description |
---|---|---|
Meadow.Units.GeoLocation | self | A Geolocation |
Meadow.Units.GeoLocation | other | A second GeoLocation |
Move(GeoLocation, Azimuth, Length)
Creates a new GeoLocation a given bearing and distance from the current GeoLocation
View Source
Declaration
[Pure]
public static GeoLocation Move(this GeoLocation self, Azimuth bearing, Length distance)
Returns
Parameters
Type | Name | Description |
---|---|---|
Meadow.Units.GeoLocation | self | A Geolocation |
Meadow.Units.Azimuth | bearing | Bearing angle to the new location |
Meadow.Units.Length | distance | Distance to the new location |