summaryrefslogtreecommitdiff
path: root/src/linalg.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-24 03:57:55 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-24 03:57:55 (GMT)
commitd847039c96641f564d805c57824bad422d68ec0d (patch)
treec4efea58024d4651213db378af8619ed7848cbef /src/linalg.h
parenta563c84bcfc36c3c2ab165386df3483b4063768b (diff)
fix bounding box function definition errors
Diffstat (limited to 'src/linalg.h')
-rw-r--r--src/linalg.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/linalg.h b/src/linalg.h
index 129ed3f..1f9ed30 100644
--- a/src/linalg.h
+++ b/src/linalg.h
@@ -22,18 +22,8 @@ bool matrix_contains_infinity( const Transform3d &m );
bool matrix_contains_nan( const Transform3d &m );
BoundingBox operator*(const Transform3d &m, const BoundingBox &box);
-
-Vector3d getBoundingCenter(BoundingBox bbox)
-{
- Vector3d center = (bbox.min() + bbox.max()) / 2;
- return center; // Vector3d(0,0,0);
-}
-
-double getBoundingRadius(BoundingBox bbox)
-{
- double radius = (bbox.max() - bbox.min()).norm() / 2;
- return radius; // 0;
-}
+Vector3d getBoundingCenter(BoundingBox bbox);
+double getBoundingRadius(BoundingBox bbox);
class Color4f : public Eigen::Vector4f
contact: Jan Huwald // Impressum