GeographicPositionExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extensions for positions
public static class GeographicPositionExtensions
type GeographicPositionExtensions = class
Public Module GeographicPositionExtensions
- Inheritance
-
GeographicPositionExtensions
Methods
DirectionTo(GeographicPosition, GeographicPosition) |
Calculates the initial angle to travel to get to another position. Calculates on the great circle, therefore the direction to the target is not constant along the path |
DistanceTo(GeographicPosition, GeographicPosition) |
Calculate the distance to another position |
MoveBy(GeographicPosition, Angle, Length) |
Move a certain distance into a direction. Where do I end? |
NormalizeLongitudeTo180Degrees(GeographicPosition) |
Normalizes the longitude to +/- 180° This is the common form for displaying longitudes. NormalizeLongitudeTo360Degrees(GeographicPosition) is used when the area of interest is close to the date border (in the pacific ocean) |
NormalizeLongitudeTo360Degrees(GeographicPosition) |
Normalizes the longitude to [0..360°) This coordinate form is advised if working in an area near the date border in the pacific ocean. |