20 #ifndef __vtkAddonMathUtilities_h 21 #define __vtkAddonMathUtilities_h 24 #include <vtkObject.h> 34 virtual void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
36 static bool MatrixAreEqual(
const vtkMatrix4x4* m1,
37 const vtkMatrix4x4* m2,
38 double tolerance = 1e-3);
40 static bool MatrixAreEqual(
const vtkMatrix4x4 *m1,
41 const vtkMatrix3x3 *m2,
42 double tolerance = 1e-3);
44 static bool MatrixAreEqual(
const vtkMatrix3x3 *m1,
45 const vtkMatrix4x4 *m2,
46 double tolerance = 1e-3);
48 static bool MatrixAreEqual(
const vtkMatrix3x3 *m1,
49 const vtkMatrix3x3 *m2,
50 double tolerance = 1e-3);
54 static void GetOrientationMatrix(vtkMatrix4x4* source, vtkMatrix3x3* dest);
58 static void SetOrientationMatrix(vtkMatrix3x3* source, vtkMatrix4x4* dest);
61 static void NormalizeColumns(vtkMatrix3x3 *m,
double scale[3]);
64 static void NormalizeOrientationMatrixColumns(vtkMatrix4x4 *m,
double scale[3]);
67 static std::string
ToString(
const vtkMatrix4x4* mat,
const std::string delimiter =
" ",
const std::string rowDelimiter =
"");
70 static bool FromString(vtkMatrix4x4* mat,
const std::string& str,
const std::string delimiterExp =
"(\\ |\\,|\\:|\\;|\t|\n|\\[|\\])");
std::string ToString(Type value)