diff Framework/Toolbox/GeometryToolbox.h @ 140:2115530d3703 wasm

OrientedBoundingBox
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Jan 2018 14:42:33 +0100
parents e2fe9352f240
children 9b83f30fc1c0
line wrap: on
line diff
--- a/Framework/Toolbox/GeometryToolbox.h	Tue Jan 16 17:44:16 2018 +0100
+++ b/Framework/Toolbox/GeometryToolbox.h	Thu Jan 18 14:42:33 2018 +0100
@@ -28,12 +28,14 @@
 #  include <boost/serialization/array_wrapper.hpp>
 #endif
 
+#include <boost/numeric/ublas/matrix.hpp>
 #include <boost/numeric/ublas/vector.hpp>
 
 #include <Core/DicomFormat/DicomMap.h>
 
 namespace OrthancStone
 {
+  typedef boost::numeric::ublas::matrix<double>   Matrix;
   typedef boost::numeric::ublas::vector<double>   Vector;
 
   namespace GeometryToolbox
@@ -118,5 +120,11 @@
     {
       return boost::numeric::ublas::inner_prod(point, normal);
     }
+
+    Matrix CreateRotationMatrixAlongX(double a);
+
+    Matrix CreateRotationMatrixAlongY(double a);
+
+    Matrix CreateRotationMatrixAlongZ(double a);    
   };
 }