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

Method Translate

Common/Transforms/vtkAbstractTransform.cxx:583–598  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

581
582//------------------------------------------------------------------------------
583void vtkTransformConcatenation::Translate(double x, double y, double z)
584{
585 if (x == 0.0 && y == 0.0 && z == 0.0)
586 {
587 return;
588 }
589
590 double matrix[4][4];
591 vtkMatrix4x4::Identity(*matrix);
592
593 matrix[0][3] = x;
594 matrix[1][3] = y;
595 matrix[2][3] = z;
596
597 this->Concatenate(*matrix);
598}
599
600//------------------------------------------------------------------------------
601void vtkTransformConcatenation::Rotate(double angle, double x, double y, double z)

Callers

nothing calls this directly

Calls 2

ConcatenateMethod · 0.95
IdentityFunction · 0.70

Tested by

no test coverage detected