diff options
author | bubnikv <bubnikv@gmail.com> | 2016-09-13 10:46:41 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-09-13 10:46:41 +0300 |
commit | 068f71847e25216de351dccc75e492aec3309ce4 (patch) | |
tree | 31be9b19ef40d68aeef0fd814a1ed16bb2bd65e7 /xs/src/libslic3r/Point.hpp | |
parent | c443f49da3e968841f43dc1f51aae189239c12d3 (diff) |
Some inlining optimizations.
Diffstat (limited to 'xs/src/libslic3r/Point.hpp')
-rw-r--r-- | xs/src/libslic3r/Point.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xs/src/libslic3r/Point.hpp b/xs/src/libslic3r/Point.hpp index 45331aa71..9c23252cb 100644 --- a/xs/src/libslic3r/Point.hpp +++ b/xs/src/libslic3r/Point.hpp @@ -44,7 +44,7 @@ class Point void translate(const Vector &vector); void rotate(double angle); void rotate(double angle, const Point ¢er); - bool coincides_with(const Point &point) const; + bool coincides_with(const Point &point) const { return this->x == point.x && this->y == point.y; } bool coincides_with_epsilon(const Point &point) const; int nearest_point_index(const Points &points) const; int nearest_point_index(const PointConstPtrs &points) const; |