User Tools

Site Tools


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

Table of Contents

TGIS_CSCoordinateSystem.Distance method

DK11 for .NET | TatukGIS.NDK.TGIS_CSCoordinateSystem.Distance | Constructors | Fields | Methods | Properties

Calculates ellipsoidal distance (expressed in meters) based on current Coordinate System.

Available also on: Delphi | Java | ActiveX.

Syntax

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

Parameters

Name Type Description
_from TGIS_Point first coordinate
_to TGIS_Point first coordinate

Result

Type Description
double
Double
distance value or -1 if distance can not be computed

Remarks

Coordinates must be in same Coordinate System. For calculations between different Coordinate System see: DistanceFromCS().

2020/05/07 01:15

Page Tools