User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_cscoordinatesystem.distance_itgis_point_itgis_point

Table of Contents

ITGIS_CSCoordinateSystem.Distance method

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

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

Available also on: Delphi | .NET | Java.

Syntax

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

Parameters

Name Type Description
_from ITGIS_Point first coordinate
_to ITGIS_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:03

Page Tools