Add a point to the last part of the shape.
// Java public bool AddPointBearing( double _bearing, double _distance );
// Oxygene public function AddPointBearing( _bearing : Double; _distance : Double ) : Boolean; virtual;
|_bearing|| double |
|bearing in radians|
|_distance|| double |
|distance in map units|
| bool |
|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.