delete some unneeded code
This commit is contained in:
parent
4710b4ae20
commit
63dfda9749
1 changed files with 0 additions and 40 deletions
|
@ -48,11 +48,6 @@ typedef Polygon<int> IPolygon;
|
||||||
const static double EPSILON = 0.0000001;
|
const static double EPSILON = 0.0000001;
|
||||||
const static double RAD = 0.017453292519943295; // PI/180
|
const static double RAD = 0.017453292519943295; // PI/180
|
||||||
|
|
||||||
// _____________________________________________________________________________
|
|
||||||
// template <typename T>
|
|
||||||
// inline MultiLine<T> rotate(const MultiLine<T>& geo, double deg,
|
|
||||||
// const Point<T>& center) {}
|
|
||||||
|
|
||||||
// _____________________________________________________________________________
|
// _____________________________________________________________________________
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline Box<T> pad(const Box<T>& box, double padding) {
|
inline Box<T> pad(const Box<T>& box, double padding) {
|
||||||
|
@ -147,41 +142,12 @@ inline Polygon<T> rotate(Polygon<T> geo, double deg, const Point<T>& c) {
|
||||||
return geo;
|
return geo;
|
||||||
}
|
}
|
||||||
|
|
||||||
// _____________________________________________________________________________
|
|
||||||
// template <typename T>
|
|
||||||
// inline MultiLine<T> rotate(const MultiLine<T>& geo, double deg) {
|
|
||||||
// Point<T> center;
|
|
||||||
// bgeo::centroid(geo, center);
|
|
||||||
// return rotate(geo, deg, center);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// _____________________________________________________________________________
|
// _____________________________________________________________________________
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline Point<T> move(const Point<T>& geo, T x, T y) {
|
inline Point<T> move(const Point<T>& geo, T x, T y) {
|
||||||
return Point<T>(geo.getX() + x, geo.getY() + y);
|
return Point<T>(geo.getX() + x, geo.getY() + y);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: outfactor
|
|
||||||
|
|
||||||
// template <typename T>
|
|
||||||
// struct RotatedBox {
|
|
||||||
// RotatedBox(const Box<T>& b, double rot, const Point<T>& center)
|
|
||||||
// : b(b), rotateDeg(rot), center(center) {}
|
|
||||||
// RotatedBox(const Box<T>& b, double rot) : b(b), rotateDeg(rot) {
|
|
||||||
// bgeo::centroid(b, center);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Box<T> b;
|
|
||||||
// double rotateDeg;
|
|
||||||
// Point<T> center;
|
|
||||||
|
|
||||||
// Polygon<T> getPolygon() {
|
|
||||||
// Polygon<T> hull;
|
|
||||||
// bgeo::convex_hull(b, hull);
|
|
||||||
// return rotate(hull, rotateDeg, center);
|
|
||||||
// }
|
|
||||||
// };
|
|
||||||
|
|
||||||
// _____________________________________________________________________________
|
// _____________________________________________________________________________
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline Box<T> minbox() {
|
inline Box<T> minbox() {
|
||||||
|
@ -799,12 +765,6 @@ inline double parallelity(const Box<T>& box, const Line<T>& line) {
|
||||||
// return ret / multiline.size();
|
// return ret / multiline.size();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// _____________________________________________________________________________
|
|
||||||
// template <typename GeomA, typename GeomB>
|
|
||||||
// inline bool intersects(const GeomA& a, const GeomB& b) {
|
|
||||||
// return bgeo::intersects(a, b);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// _____________________________________________________________________________
|
// _____________________________________________________________________________
|
||||||
// template <typename T, template <typename> typename Geometry>
|
// template <typename T, template <typename> typename Geometry>
|
||||||
// inline RotatedBox<T> getOrientedEnvelope(Geometry<T> pol) {
|
// inline RotatedBox<T> getOrientedEnvelope(Geometry<T> pol) {
|
||||||
|
|
Loading…
Reference in a new issue