DK11 for .NET | TatukGIS.NDK.TGIS_Shape.AddPointBearing | Overloads | Constructors | Fields | Methods | Properties
Add a point to the last part of the shape.
// 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;
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 |
Type | Description |
---|---|
bool Boolean | 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.