From cb64e587c559131047906e6b5da2093fa5946fda Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 4 Jun 2012 22:01:06 +0200 Subject: Fix kdBVH unit test --- unsupported/test/BVH.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'unsupported/test/BVH.cpp') diff --git a/unsupported/test/BVH.cpp b/unsupported/test/BVH.cpp index e77e84b6d..3f9d108de 100644 --- a/unsupported/test/BVH.cpp +++ b/unsupported/test/BVH.cpp @@ -24,9 +24,15 @@ #include "main.h" #include +#include #include -inline double SQR(double x) { return x * x; } +namespace Eigen { + +template AlignedBox bounding_box(const Matrix &v) { return AlignedBox(v); } + +} + template struct Ball @@ -41,16 +47,10 @@ EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(double, Dim) VectorType center; double radius; }; - -namespace Eigen { -namespace internal { - -template AlignedBox bounding_box(const Matrix &v) { return AlignedBox(v); } template AlignedBox bounding_box(const Ball &b) { return AlignedBox(b.center.array() - b.radius, b.center.array() + b.radius); } -} // end namespace internal -} +inline double SQR(double x) { return x * x; } template struct BallPointStuff //this class provides functions to be both an intersector and a minimizer, both for a ball and a point and for two trees -- cgit v1.2.3