User Tools

Site Tools


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

Table of Contents

TGIS_Shape.Distance2Part method

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

Calculate the linear distance between a point and a part in the current shape..

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

Syntax

// C#
public virtual abstract double Distance2Part(
  TGIS_Point _ptg,
  double _prec,
  int _part,
  ref TGIS_Point _proj
);
' VisualBasic
Public Overridable MustOverride Function Distance2Part(
  ByVal _ptg As TGIS_Point,
  ByVal _prec As Double,
  ByVal _part As Integer,
  ByRef _proj As TGIS_Point
) As Double
// Oxygene
public
  function Distance2Part(
    _ptg : TGIS_Point;
    _prec : Double;
    _part : Integer;
    var _proj : TGIS_Point
  ) : Double; virtual; abstract;

Parameters

Name Type Description
_ptg TGIS_Point reference point
_prec double
Double
precision /not longer distance than/; point inside polygon is always not greater than _prec; if _prec less then 0 then being outside/inside polygon means the same;
_part int
Integer
part number to which the distance will be computed
_proj TGIS_Point point projected to a nearest element of the shape

Result

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

Page Tools