From 63dfda9749e433441b8b191f10e24fcd6dc6f805 Mon Sep 17 00:00:00 2001 From: Patrick Brosi Date: Thu, 19 Jul 2018 02:08:10 +0200 Subject: [PATCH] delete some unneeded code --- src/util/geo/Geo.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/src/util/geo/Geo.h b/src/util/geo/Geo.h index b176592..f823296 100644 --- a/src/util/geo/Geo.h +++ b/src/util/geo/Geo.h @@ -48,11 +48,6 @@ typedef Polygon IPolygon; const static double EPSILON = 0.0000001; const static double RAD = 0.017453292519943295; // PI/180 -// _____________________________________________________________________________ -// template -// inline MultiLine rotate(const MultiLine& geo, double deg, -// const Point& center) {} - // _____________________________________________________________________________ template inline Box pad(const Box& box, double padding) { @@ -147,41 +142,12 @@ inline Polygon rotate(Polygon geo, double deg, const Point& c) { return geo; } -// _____________________________________________________________________________ -// template -// inline MultiLine rotate(const MultiLine& geo, double deg) { -// Point center; -// bgeo::centroid(geo, center); -// return rotate(geo, deg, center); -// } - // _____________________________________________________________________________ template inline Point move(const Point& geo, T x, T y) { return Point(geo.getX() + x, geo.getY() + y); } -// TODO: outfactor - -// template -// struct RotatedBox { -// RotatedBox(const Box& b, double rot, const Point& center) -// : b(b), rotateDeg(rot), center(center) {} -// RotatedBox(const Box& b, double rot) : b(b), rotateDeg(rot) { -// bgeo::centroid(b, center); -// } - -// Box b; -// double rotateDeg; -// Point center; - -// Polygon getPolygon() { -// Polygon hull; -// bgeo::convex_hull(b, hull); -// return rotate(hull, rotateDeg, center); -// } -// }; - // _____________________________________________________________________________ template inline Box minbox() { @@ -799,12 +765,6 @@ inline double parallelity(const Box& box, const Line& line) { // return ret / multiline.size(); // } -// _____________________________________________________________________________ -// template -// inline bool intersects(const GeomA& a, const GeomB& b) { -// return bgeo::intersects(a, b); -// } - // _____________________________________________________________________________ // template typename Geometry> // inline RotatedBox getOrientedEnvelope(Geometry pol) {