X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=blobdiff_plain;f=source%2Fgeometry%2Funion.h;h=8461f8484ee5d085560b6fb70f522447d9a95c6e;hp=13eb7080442c625369f2c565fbb71405df5c9955;hb=09cc3a8648dd20e9a07d669b353c4a120b67c1c4;hpb=f7dcf3f0be55316bf20ac0c318dd90cb78a75c80 diff --git a/source/geometry/union.h b/source/geometry/union.h index 13eb708..8461f84 100644 --- a/source/geometry/union.h +++ b/source/geometry/union.h @@ -12,7 +12,7 @@ Joins component shapes together into one. template struct UnionOps { - static HyperBox combine_aabb(const HyperBox &, const HyperBox &); + static BoundingBox combine_aabb(const BoundingBox &a, const BoundingBox &b) { return a|b; } static bool init_inside() { return false; } static bool combine_inside(bool a, bool b) { return a || b; } static bool is_inside_decided(bool a) { return a; } @@ -54,16 +54,6 @@ inline Union *Union::clone() const return new Union(*this); } - -template -inline HyperBox UnionOps::combine_aabb(const HyperBox &box1, const HyperBox &box2) -{ - LinAl::Vector dimensions; - for(unsigned i=0; i(dimensions); -} - } // namespace Geometry } // namespace Msp