User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_csellipsoid.distance_itgis_point_itgis_point

Table of Contents

ITGIS_CSEllipsoid.Distance method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_CSEllipsoid.Distance | Methods | Properties

Calculates distance over Great Circle

Available also on: Delphi | .NET | Java.

Syntax

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

Parameters

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

Result

Type Description
double
Double
Computed distance in meters.
2020/05/07 01:03

Page Tools