User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.addpointbearing_double_double

Table of Contents

ITGIS_Shape.AddPointBearing method

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

Add a point to the last part of the shape.

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

Syntax

// C#
public WordBool AddPointBearing(
  double _bearing,
  double _distance
);
' VisualBasic
Public Function AddPointBearing(
  ByVal _bearing As Double,
  ByVal _distance As Double
) As WordBool
// Oxygene
public
  function AddPointBearing(
    _bearing : Double;
    _distance : Double
  ) : WordBool;

Parameters

Name Type Description
_bearing double
Double
bearing in radians
_distance double
Double
distance in map units

Result

Type Description
WordBool True, then function succeed.

Remarks

If the _compass is True then the bearing will be calculated based on North. Otherwise the bearing is calculated as an angle between last vertex and new point. Shape must have at least one vertex (2 points) in a current part for non-compass computations and at least one point for compass computations. If point can not be added (because no vertex exist or an angle can not be calculated) then function return False.

2022/11/16 01:11

Page Tools