X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FsourceVectorMath.cxx;h=4717758cc5f82fc8639438f56a9ce1740636c6fe;hb=683ff9386e374db4f94ae5d4c32859cc808c3ad4;hp=37eb419e9da9c430faa3d2580dfdcc6eac22e212;hpb=2aad4ea488fa7bf60864e6f9ee49e5f5247861d7;p=creaRigidRegistration.git diff --git a/lib/sourceVectorMath.cxx b/lib/sourceVectorMath.cxx index 37eb419..4717758 100644 --- a/lib/sourceVectorMath.cxx +++ b/lib/sourceVectorMath.cxx @@ -2,5 +2,47 @@ VectorMath::VectorMath() { + //_math = vtkMath::new(); +} -} \ No newline at end of file +VectorMath::~VectorMath() +{ + if (_math != NULL ) { _math->Delete(); } +} + +void VectorMath::SetData(std::vector pointsX1, std::vector pointsX2, std::vector pointsY1, std::vector pointsY2, std::vector pointsZ1, std::vector 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