MCPcopy Create free account
hub / github.com/Kitware/VTK / Translate

Method Translate

Common/Transforms/vtkTransform2D.cxx:72–84  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

70
71//------------------------------------------------------------------------------
72void vtkTransform2D::Translate(double x, double y)
73{
74 if (x == 0.0 && y == 0.0)
75 {
76 return;
77 }
78 double matrix[3][3];
79 vtkMatrix3x3::Identity(*matrix);
80 matrix[0][2] = x;
81 matrix[1][2] = y;
82 vtkMatrix3x3::Multiply3x3(this->Matrix->GetData(), *matrix, this->Matrix->GetData());
83 this->Matrix->Modified();
84}
85
86//------------------------------------------------------------------------------
87void vtkTransform2D::Rotate(double angle)

Callers 8

TranslateFunction · 0.45
TranslateFunction · 0.45
TranslateFunction · 0.45
TranslateFunction · 0.45
testUseOfInverseFunction · 0.45
SetTransformFunction · 0.45

Calls 4

IdentityFunction · 0.70
Multiply3x3Function · 0.50
GetDataMethod · 0.45
ModifiedMethod · 0.45

Tested by 4

TranslateFunction · 0.36
testUseOfInverseFunction · 0.36
SetTransformFunction · 0.36