User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_csellipsoid.distance_tgis_point_tgis_point

Table of Contents

TGIS_CSEllipsoid.Distance method

DK11 for .NET | TatukGIS.NDK.TGIS_CSEllipsoid.Distance | Constructors | Methods | Properties

Calculates distance over Great Circle

Available also on: Delphi | Java | ActiveX | Python.

Syntax

// C#
public double Distance(
  TGIS_Point _ptg_a,
  TGIS_Point _ptg_b
);
' VisualBasic
Public Function Distance(
  ByVal _ptg_a As TGIS_Point,
  ByVal _ptg_b As TGIS_Point
) As Double
// Oxygene
public
  function Distance(
    _ptg_a : TGIS_Point;
    _ptg_b : TGIS_Point
  ) : Double;

Parameters

Name Type Description
_ptg_a TGIS_Point start point; longitude & latitude must be expressed in radians
_ptg_b TGIS_Point end point; longitude & latitude must be expressed in radians

Result

Type Description
double
Double
Computed distance in meters.
2022/11/16 01:28

Page Tools