------------------------------------------------------------------------------
| 70 | |
| 71 | //------------------------------------------------------------------------------ |
| 72 | void 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 | //------------------------------------------------------------------------------ |
| 87 | void vtkTransform2D::Rotate(double angle) |