summaryrefslogtreecommitdiff
path: root/src/linalg.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-08-20 23:33:13 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-08-20 23:33:13 (GMT)
commitf1d4a52f4cc01843f5d7c40499fcfe44cc82712f (patch)
tree2d6717a6deeed4157d84b07f45a41cc9d8f3b9e2 /src/linalg.h
parent0170923b9bb51e198c8a3ad1b98ca5ed74a6c77d (diff)
dont crash if there's infinity or NaN in transformation matrix
Diffstat (limited to 'src/linalg.h')
-rw-r--r--src/linalg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/linalg.h b/src/linalg.h
index 65243dc..baff7f1 100644
--- a/src/linalg.h
+++ b/src/linalg.h
@@ -14,6 +14,9 @@ using Eigen::Matrix3d;
using Eigen::Matrix4d;
using Eigen::Transform3d;
+bool matrix_contains_infinity( const Eigen::Transform3d &m );
+bool matrix_contains_nan( const Eigen::Transform3d &m );
+
BoundingBox operator*(const Transform3d &m, const BoundingBox &box);
class Color4f : public Eigen::Vector4f
contact: Jan Huwald // Impressum