Edit

Share via


GeographicPositionExtensions Class

Definition

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.

Applies to