User Tools

Site Tools


api:dk11:delphi:giscsbase.tgis_csellipsoid.distance_tgis_point_tgis_point

Table of Contents

TGIS_CSEllipsoid.Distance method

DK11 for Delphi | GisCsBase.TGIS_CSEllipsoid.Distance | Constructors | Methods | Properties

Calculates distance over Great Circle

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function Distance(
    const _ptg_a : TGIS_Point;
    const _ptg_b : TGIS_Point
  ) : Double;
// C++ Builder
public:
  double Distance(
    TGIS_Point* const _ptg_a,
    TGIS_Point* const _ptg_b
  );

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 Computed distance in meters.
2020/05/07 01:06

Page Tools