Zum Inhalt

.GetDistance (.coordinates Objektmethode)

Beschreibung

Diese Funktion berchnet die Distanz zu einem anderen Koordinatenpunkt. Returns the geodetic distance in metres between this coordinate and another.

Argumente

Name

Typ

Beschreibung

OtherPoint

coordinates

Koordinatenpunkt, zu dem die Distanz berechnet werden soll

Rückgabewert float

Distanz in meter. the geodetic distance between the two points in metres

Beispiel

MyCoordinate1 = Coordinates();

MyCoordinate1.SetLLCoordinates(9.3456, 46.1295, 504);

MyCoordinate2 = Coordinates();

MyCoordinate2.SetLLCoordinates(9.8243, 45.8965, 541);

Distance = MyCoordinate1.GetDistance(MyCoordinate2);