User Tools

Site Tools


Table of Contents

ITGIS_Shape.AddPointBearing_2 method

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

Add a point to the last part of the shape.

Available also on: Delphi | .NET | Java.


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


Name Type Description
_bearing double
bearing in radians
_distance double
distance in map units
_compass WordBool if True, then bearing is North oriented


Type Description
WordBool True, then function succeed.


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.

2020/05/07 01:04

Page Tools