diff options
author | bubnikv <bubnikv@gmail.com> | 2017-07-28 16:47:59 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-07-28 16:47:59 +0300 |
commit | 812a2c7cbdd3d865792b97300e0d2cb15c2c5cbb (patch) | |
tree | 595ee5d8ba0bd35cd170fa0c874cdf869a9f002c /xs/src/libslic3r/Point.hpp | |
parent | 137aab9631c36ea8efda0d8c009050de875f2136 (diff) |
Further implementation of FillRectilinear3.
Diffstat (limited to 'xs/src/libslic3r/Point.hpp')
-rw-r--r-- | xs/src/libslic3r/Point.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Point.hpp b/xs/src/libslic3r/Point.hpp index 977af2b67..f2d3a6e65 100644 --- a/xs/src/libslic3r/Point.hpp +++ b/xs/src/libslic3r/Point.hpp @@ -79,6 +79,7 @@ inline Point operator+(const Point& point1, const Point& point2) { return Point( inline Point operator-(const Point& point1, const Point& point2) { return Point(point1.x - point2.x, point1.y - point2.y); } inline Point operator*(double scalar, const Point& point2) { return Point(scalar * point2.x, scalar * point2.y); } inline int64_t cross(const Point &v1, const Point &v2) { return int64_t(v1.x) * int64_t(v2.y) - int64_t(v1.y) * int64_t(v2.x); } +inline int64_t dot(const Point &v1, const Point &v2) { return int64_t(v1.x) * int64_t(v2.x) + int64_t(v1.y) * int64_t(v2.y); } // To be used by std::unordered_map, std::unordered_multimap and friends. struct PointHash { |