User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.getsnappoint_itgis_point_double_double

Table of Contents

ITGIS_Shape.GetSnapPoint method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_Shape.GetSnapPoint | Methods | Properties

Retrieving a snap point.

Available also on: Delphi | .NET | Java.

Syntax

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

Parameters

Name Type Description
_ptg ITGIS_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
ITGIS_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.

2020/05/07 01:04

Page Tools