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
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-08-21 10:51:22 +0300
committerbubnikv <bubnikv@gmail.com>2018-08-21 10:51:22 +0300
commitc5256bdd2ccebd43333a14fdd31b810cd2b57e12 (patch)
tree2abac1c86765e8b7c89a8327e9f011bd08c92dbe /xs
parentab60d8adb4831a3cbbd3dfeebd798532873b6ef3 (diff)
Removed the Point::coincides_with_epsilon() method
Diffstat (limited to 'xs')
-rw-r--r--xs/src/libslic3r/Point.cpp5
-rw-r--r--xs/src/libslic3r/Point.hpp1
-rw-r--r--xs/xsp/Point.xsp2
3 files changed, 0 insertions, 8 deletions
diff --git a/xs/src/libslic3r/Point.cpp b/xs/src/libslic3r/Point.cpp
index 7c008be9d..10578641e 100644
--- a/xs/src/libslic3r/Point.cpp
+++ b/xs/src/libslic3r/Point.cpp
@@ -28,11 +28,6 @@ void Point::rotate(double angle, const Point &center)
(*this)(1) = (coord_t)round( (double)center(1) + c * dy + s * dx );
}
-bool Point::coincides_with_epsilon(const Point &point) const
-{
- return std::abs((*this)(0) - point(0)) < SCALED_EPSILON && std::abs((*this)(1) - point(1)) < SCALED_EPSILON;
-}
-
int Point::nearest_point_index(const Points &points) const
{
PointConstPtrs p;
diff --git a/xs/src/libslic3r/Point.hpp b/xs/src/libslic3r/Point.hpp
index 19c1ac368..311951175 100644
--- a/xs/src/libslic3r/Point.hpp
+++ b/xs/src/libslic3r/Point.hpp
@@ -91,7 +91,6 @@ public:
void rotate(double angle, const Point &center);
Point rotated(double angle) const { Point res(*this); res.rotate(angle); return res; }
Point rotated(double angle, const Point &center) const { Point res(*this); res.rotate(angle, center); return res; }
- bool coincides_with_epsilon(const Point &point) const;
int nearest_point_index(const Points &points) const;
int nearest_point_index(const PointConstPtrs &points) const;
int nearest_point_index(const PointPtrs &points) const;
diff --git a/xs/xsp/Point.xsp b/xs/xsp/Point.xsp
index 0c3dae321..2a98f9c39 100644
--- a/xs/xsp/Point.xsp
+++ b/xs/xsp/Point.xsp
@@ -50,8 +50,6 @@
%code{% RETVAL = new Point(THIS->projection_onto(*line)); %};
Point* negative()
%code{% RETVAL = new Point(- *THIS); %};
- bool coincides_with_epsilon(Point* point)
- %code{% RETVAL = (*THIS) == *point; %};
std::string serialize() %code{% char buf[2048]; sprintf(buf, "%ld,%ld", (*THIS)(0), (*THIS)(1)); RETVAL = buf; %};
%{