diff Framework/Toolbox/GeometryToolbox.h @ 122:e3433dabfb8d wasm

refactoring DicomStructureSet
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 06 Oct 2017 17:25:08 +0200
parents a4d0b6c82b29
children e2fe9352f240
line wrap: on
line diff
--- a/Framework/Toolbox/GeometryToolbox.h	Wed Oct 04 17:53:47 2017 +0200
+++ b/Framework/Toolbox/GeometryToolbox.h	Fri Oct 06 17:25:08 2017 +0200
@@ -112,5 +112,11 @@
     void GetPixelSpacing(double& spacingX, 
                          double& spacingY,
                          const Orthanc::DicomMap& dicom);
+
+    inline double ProjectAlongNormal(const Vector& point,
+                                     const Vector& normal)
+    {
+      return boost::numeric::ublas::inner_prod(point, normal);
+    }
   };
 }