]> Creatis software - creaRigidRegistration.git/blob - lib/VectorMath.cxx
*** empty log message ***
[creaRigidRegistration.git] / lib / VectorMath.cxx
1 #include "VectorMath.h"
2
3 VectorMath::VectorMath()
4 {
5         //_math = vtkMath::new();
6 }
7
8 VectorMath::~VectorMath()
9 {
10         if (_math != NULL ) { _math->Delete(); }
11 }
12
13 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)
14 {
15     _pointx1a = pointsX1[0];
16         _pointx1b = pointsX1[1];
17
18         _pointx2a = pointsX2[0];
19         _pointx2b = pointsX2[1];
20
21         _pointy1a = pointsY1[0];
22         _pointy1b = pointsY1[1];
23
24         _pointy2a = pointsY2[0];
25         _pointy2b = pointsY2[1];
26
27         _pointz1a = pointsZ1[0];
28         _pointz1b = pointsZ1[1];
29
30         _pointz2a = pointsZ2[0];
31         _pointz2b = pointsZ2[1];
32 }
33 /*
34
35 int[3]* VectorMath::GetPoints()
36 {
37
38 }
39
40 double[3]* VectorMath::GetScales()
41 {
42
43 }
44
45 double VectorMath::GetAngle()
46 {
47
48 }*/
49