Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2014-04-24 18:40:10 +0400
committerAlessandro Ranellucci <aar@cpan.org>2014-04-24 18:40:10 +0400
commitca4d4211c9bb84fe63647283d11ad8d22d792053 (patch)
tree0f75fd40b4f77b23d552e24a8ca964c528d6d475 /xs/src/Polyline.hpp
parent6201aacf88fe1bfbf2bba5212a6d1f3400bba97d (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.hpp3
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);