diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-08-20 23:33:13 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-08-20 23:33:13 (GMT) |
commit | f1d4a52f4cc01843f5d7c40499fcfe44cc82712f (patch) | |
tree | 2d6717a6deeed4157d84b07f45a41cc9d8f3b9e2 /src/linalg.h | |
parent | 0170923b9bb51e198c8a3ad1b98ca5ed74a6c77d (diff) |
dont crash if there's infinity or NaN in transformation matrix
Diffstat (limited to 'src/linalg.h')
-rw-r--r-- | src/linalg.h | 3 |
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 |