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

Method Scale

Common/Transforms/vtkAbstractTransform.cxx:609–624  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

607
608//------------------------------------------------------------------------------
609void vtkTransformConcatenation::Scale(double x, double y, double z)
610{
611 if (x == 1.0 && y == 1.0 && z == 1.0)
612 {
613 return;
614 }
615
616 double matrix[4][4];
617 vtkMatrix4x4::Identity(*matrix);
618
619 matrix[0][0] = x;
620 matrix[1][1] = y;
621 matrix[2][2] = z;
622
623 this->Concatenate(*matrix);
624}
625
626//------------------------------------------------------------------------------
627void vtkTransformConcatenation::Inverse()

Callers

nothing calls this directly

Calls 2

ConcatenateMethod · 0.95
IdentityFunction · 0.70

Tested by

no test coverage detected