summaryrefslogtreecommitdiff
path: root/src/linalg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/linalg.h')
-rw-r--r--src/linalg.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/linalg.h b/src/linalg.h
index 48960b7..129ed3f 100644
--- a/src/linalg.h
+++ b/src/linalg.h
@@ -23,6 +23,19 @@ 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;
+}
+
+
class Color4f : public Eigen::Vector4f
{
public:
contact: Jan Huwald // Impressum