summaryrefslogtreecommitdiff
path: root/src/linalg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/linalg.h')
-rw-r--r--src/linalg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/linalg.h b/src/linalg.h
index c1a14d1..15ef870 100644
--- a/src/linalg.h
+++ b/src/linalg.h
@@ -15,4 +15,10 @@ using Eigen::Transform3d;
BoundingBox operator*(const Transform3d &m, const BoundingBox &box);
+class Color4f : public Eigen::Vector4f
+{
+public:
+ bool isValid() const { return this->minCoeff() >= 0.0f; }
+};
+
#endif
contact: Jan Huwald // Impressum