Field3D
|
Functions | |
template<class Matrix_T > | |
bool | checkMatricesIdentical (const Matrix_T &m1, const Matrix_T &m2, double tolerance) |
const string | k_frustumMappingName ("FrustumFieldMapping") |
const string | k_mappingName ("FieldMapping") |
const string | k_matrixMappingName ("MatrixFieldMapping") |
const string | k_nullMappingName ("NullFieldMapping") |
const string FIELD3D_NAMESPACE_OPEN::k_mappingName | ( | "FieldMapping" | ) |
const string FIELD3D_NAMESPACE_OPEN::k_nullMappingName | ( | "NullFieldMapping" | ) |
Referenced by NullFieldMapping::isIdentical(), and NullFieldMappingIO::className().
const string FIELD3D_NAMESPACE_OPEN::k_matrixMappingName | ( | "MatrixFieldMapping" | ) |
Referenced by MatrixFieldMapping::isIdentical(), and MatrixFieldMappingIO::className().
const string FIELD3D_NAMESPACE_OPEN::k_frustumMappingName | ( | "FrustumFieldMapping" | ) |
Referenced by FrustumFieldMapping::isIdentical(), and FrustumFieldMappingIO::className().
bool FIELD3D_NAMESPACE_OPEN::checkMatricesIdentical | ( | const Matrix_T & | m1, |
const Matrix_T & | m2, | ||
double | tolerance | ||
) |
Definition at line 82 of file FieldMapping.cpp.
References FIELD3D_EXTRACT_SHRT.
Referenced by MatrixFieldMapping::isIdentical(), and FrustumFieldMapping::isIdentical().
{ if (m1.equalWithRelError(m2, tolerance)) { return true; } V3d s1, r1, t1, sh1, s2, r2, t2, sh2; if (!FIELD3D_EXTRACT_SHRT(m1, s1, sh1, r1, t1, false)) { return false; } if (!FIELD3D_EXTRACT_SHRT(m2, s2, sh2, r2, t2, false)) { return false; } if (!s1.equalWithRelError(s2, tolerance) || !r1.equalWithAbsError(r2, tolerance) || !t1.equalWithRelError(t2, tolerance)) { return false; } return true; }