]> Creatis software - creaRigidRegistration.git/blobdiff - lib/VectorMath.cxx
New items
[creaRigidRegistration.git] / lib / VectorMath.cxx
diff --git a/lib/VectorMath.cxx b/lib/VectorMath.cxx
new file mode 100644 (file)
index 0000000..1545154
--- /dev/null
@@ -0,0 +1,48 @@
+#include "VectorMath.h"
+
+VectorMath::VectorMath()
+{
+       //_math = vtkMath::new();
+}
+
+VectorMath::~VectorMath()
+{
+       if (_math != NULL ) { _math->Delete(); }
+}
+
+void VectorMath::SetData(std::vector<int> pointsX1, std::vector<int> pointsX2, std::vector<int> pointsY1, std::vector<int> pointsY2, std::vector<int> pointsZ1, std::vector<int> pointsZ2)
+{
+    _pointx1a = pointsX1[0];
+       _pointx1b = pointsX1[1];
+
+       _pointx2a = pointsX2[0];
+       _pointx2b = pointsX2[1];
+
+       _pointy1a = pointsY1[0];
+       _pointy1b = pointsY1[1];
+
+       _pointy2a = pointsY2[0];
+       _pointy2b = pointsY2[1];
+
+       _pointz1a = pointsZ1[0];
+       _pointz1b = pointsZ1[1];
+
+       _pointz2a = pointsZ2[0];
+       _pointz2b = pointsZ2[1];
+}
+/*
+
+int[3]* VectorMath::GetPoints()
+{
+
+}
+
+double[3]* VectorMath::GetScales()
+{
+
+}
+
+double VectorMath::GetAngle()
+{
+
+}*/
\ No newline at end of file