------------------------------------------------------------------------------
| 221 | |
| 222 | //------------------------------------------------------------------------------ |
| 223 | void vtkTransform2D::InverseTransformPoints(const float* inPts, float* outPts, int n) |
| 224 | { |
| 225 | if (this->Matrix->GetMTime() > this->InverseMatrix->GetMTime()) |
| 226 | { |
| 227 | vtkMatrix3x3::Invert(this->Matrix, this->InverseMatrix); |
| 228 | } |
| 229 | double* M = this->InverseMatrix->GetData(); |
| 230 | |
| 231 | for (int i = 0; i < n; ++i) |
| 232 | { |
| 233 | vtkHomogeneousTransformPoint2D(M, &inPts[2 * i], &outPts[2 * i]); |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | //------------------------------------------------------------------------------ |
| 238 | void vtkTransform2D::InverseTransformPoints(const double* inPts, double* outPts, int n) |