User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_shape.addpointbearing_double_double_boolean

Table of Contents

TGIS_Shape.AddPointBearing(double, double, bool) method

DK11 for Java | tatukgis.jdk.TGIS_Shape.AddPointBearing | Overloads | Constructors | Fields | Methods | Properties

Add a point to the last part of the shape.

Available also on: Delphi | .NET | ActiveX.

Syntax

// Java
public bool AddPointBearing(
  double _bearing,
  double _distance,
  bool _compass
);
// 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.

2020/01/03 01:13

Page Tools