You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include "FITKAssInstanceM4.h"
|
|
|
|
|
#include "FITK_Kernel/FITKCore/FITKDataRepo.h"
|
|
|
|
|
|
|
|
|
|
namespace Interface
|
|
|
|
|
{
|
|
|
|
|
void FITKAssemblyInstanceM4::setTransformMatrix(const int row, const int col, const double value)
|
|
|
|
|
{
|
|
|
|
|
//错误判断
|
|
|
|
|
if (row < 0 || row >= 4) return;
|
|
|
|
|
if (col < 0 || col >= 4) return;
|
|
|
|
|
_transformMatrix[row][col] = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
double FITKAssemblyInstanceM4::getTransformMatrix(const int row, const int col)
|
|
|
|
|
{
|
|
|
|
|
//错误判断
|
|
|
|
|
if (row < 0 || row >= 4) return 1e64;
|
|
|
|
|
if (col < 0 || col >= 4) return 1e64;
|
|
|
|
|
return _transformMatrix[row][col];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|