diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2014-04-24 18:40:10 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2014-04-24 18:40:10 +0400 |
commit | ca4d4211c9bb84fe63647283d11ad8d22d792053 (patch) | |
tree | 0f75fd40b4f77b23d552e24a8ca964c528d6d475 /xs/src/Polyline.hpp | |
parent | 6201aacf88fe1bfbf2bba5212a6d1f3400bba97d (diff) |
Refactored signatures of many C++ methods for more efficient and safer style. Includes a bugfix for Point::nearest_point() which was returning a pointer to freed memory. #1961
Diffstat (limited to 'xs/src/Polyline.hpp')
-rw-r--r-- | xs/src/Polyline.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xs/src/Polyline.hpp b/xs/src/Polyline.hpp index 56cadddfc..b2648ba48 100644 --- a/xs/src/Polyline.hpp +++ b/xs/src/Polyline.hpp @@ -12,7 +12,8 @@ typedef std::vector<Polyline> Polylines; class Polyline : public MultiPoint { public: operator Polylines() const; - Point* last_point() const; + Point last_point() const; + Point leftmost_point() const; Lines lines() const; void clip_end(double distance); void clip_start(double distance); |