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);
53 static void GetOrientationMatrixColumn(vtkMatrix4x4* m,
int columnIndex,
double columnVector[4]);
56 static void SetOrientationMatrixColumn(vtkMatrix4x4* m,
int columnIndex,
double columnVector[4]);
60 static void GetOrientationMatrix(vtkMatrix4x4* source, vtkMatrix3x3* dest);
64 static void SetOrientationMatrix(vtkMatrix3x3* source, vtkMatrix4x4* dest);
67 static void NormalizeColumns(vtkMatrix3x3 *m,
double scale[3]);
70 static void NormalizeOrientationMatrixColumns(vtkMatrix4x4 *m,
double scale[3]);
73 static std::string
ToString(
const vtkMatrix4x4* mat,
const std::string delimiter =
" ",
const std::string rowDelimiter =
"");
76 static bool FromString(vtkMatrix4x4* mat,
const std::string& str,
const std::string delimiterExp =
"(\\ |\\,|\\:|\\;|\t|\n|\\[|\\])");
std::string ToString(Type value)