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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-03-13 18:03:11 +0300
committerbubnikv <bubnikv@gmail.com>2017-03-13 18:03:11 +0300
commitc96d7946040d4bb6f943fd596bc42e5c063bc06a (patch)
tree6ecd0901f406bd399b6e3c737e44419078d96ea1 /xs/src/libslic3r/BoundingBox.cpp
parente6fddd364d876c3970a440a7c37f8a6221388fea (diff)
BoundingBox, Print - methods inlined, added const accessors.
Diffstat (limited to 'xs/src/libslic3r/BoundingBox.cpp')
-rw-r--r--xs/src/libslic3r/BoundingBox.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/xs/src/libslic3r/BoundingBox.cpp b/xs/src/libslic3r/BoundingBox.cpp
index 75ece90bf..f268bb3fb 100644
--- a/xs/src/libslic3r/BoundingBox.cpp
+++ b/xs/src/libslic3r/BoundingBox.cpp
@@ -204,23 +204,6 @@ BoundingBox3Base<PointClass>::radius() const
template double BoundingBox3Base<Pointf3>::radius() const;
template <class PointClass> void
-BoundingBoxBase<PointClass>::translate(coordf_t x, coordf_t y)
-{
- this->min.translate(x, y);
- this->max.translate(x, y);
-}
-template void BoundingBoxBase<Point>::translate(coordf_t x, coordf_t y);
-template void BoundingBoxBase<Pointf>::translate(coordf_t x, coordf_t y);
-
-template <class PointClass> void
-BoundingBox3Base<PointClass>::translate(coordf_t x, coordf_t y, coordf_t z)
-{
- this->min.translate(x, y, z);
- this->max.translate(x, y, z);
-}
-template void BoundingBox3Base<Pointf3>::translate(coordf_t x, coordf_t y, coordf_t z);
-
-template <class PointClass> void
BoundingBoxBase<PointClass>::offset(coordf_t delta)
{
this->min.translate(-delta, -delta);
@@ -259,25 +242,6 @@ BoundingBox3Base<PointClass>::center() const
}
template Pointf3 BoundingBox3Base<Pointf3>::center() const;
-template <class PointClass> bool
-BoundingBoxBase<PointClass>::contains(const PointClass &point) const
-{
- return point.x >= this->min.x && point.x <= this->max.x
- && point.y >= this->min.y && point.y <= this->max.y;
-}
-template bool BoundingBoxBase<Point>::contains(const Point &point) const;
-template bool BoundingBoxBase<Pointf>::contains(const Pointf &point) const;
-
-template <class PointClass> bool
-BoundingBoxBase<PointClass>::overlap(const BoundingBoxBase<PointClass> &other) const
-{
- return ! (this->max.x < other.min.x || this->min.x > other.max.x ||
- this->max.y < other.min.y || this->min.y > other.max.y);
-}
-template bool BoundingBoxBase<Point>::overlap(const BoundingBoxBase<Point> &point) const;
-template bool BoundingBoxBase<Pointf>::overlap(const BoundingBoxBase<Pointf> &point) const;
-
-
// Align a coordinate to a grid. The coordinate may be negative,
// the aligned value will never be bigger than the original one.
static inline coord_t _align_to_grid(const coord_t coord, const coord_t spacing) {