User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_shape.distance_tgis_point_double

Table of Contents

TGIS_Shape.Distance method

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

Calculate planar distance between a point and the shape.

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

Syntax

// C#
public virtual double Distance(
  TGIS_Point _ptg,
  double _prec
);
' VisualBasic
Public Overridable Function Distance(
  ByVal _ptg As TGIS_Point,
  ByVal _prec As Double
) As Double
// Oxygene
public
  function Distance(
    _ptg : TGIS_Point;
    _prec : Double
  ) : Double; virtual;

Parameters

Name Type Description
_ptg TGIS_Point reference point
_prec double
Double
precision /not longer distance than/; point inside the polygon is always not greater then _prec; if _prec less than 0, then being outside/inside polygon means the same;

Result

Type Description
double
Double
Distance between shapes in map units.
2022/11/16 01:35

Page Tools