User Tools

Site Tools


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

Table of Contents

TGIS_Shape.GetSnapPoint method

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

Retrieving a snap point.

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

Syntax

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

Parameters

Name Type Description
_ptg TGIS_Point point for which we are seeking a snap point ;
_prec double
Double
snapping precision; only points closer to _ptg then _prec can be found ;
_dist double
Double
achieved precision

Result

Type Description
TGIS_Point Found snap point. If such point cannot be localized then same as _ptg.

Remarks

Snap point is the best point in the shape for which we can perform snapping.

2022/11/16 01:35

Page Tools