User Tools

Site Tools


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

Table of Contents

TGIS_Shape.AddPointBearing(double, double, bool) method

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

Add a point to the last part of the shape.

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

Syntax

// C#
public virtual bool AddPointBearing(
  double _bearing,
  double _distance,
  bool _compass
);
' VisualBasic
Public Overridable Function AddPointBearing(
  ByVal _bearing As Double,
  ByVal _distance As Double,
  ByVal _compass As Boolean
) As Boolean
// Oxygene
public
  function AddPointBearing(
    _bearing : Double;
    _distance : Double;
    _compass : Boolean
  ) : Boolean; virtual;

Parameters

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

Result

Type Description
bool
Boolean
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:35

Page Tools