36 #ifndef __vtkTransform2D_h
37 #define __vtkTransform2D_h
39 #include "vtkCommonTransformsModule.h"
62 void Translate(
double x,
double y);
69 void Rotate(
double angle);
74 void Scale(
double x,
double y);
75 void Scale(
const double s[2]) { this->
Scale(s[0], s[1]); }
76 void Scale(
const float s[2]) { this->
Scale(s[0], s[1]); }
82 this->SetMatrix(matrix->
GetData()); }
83 void SetMatrix(
const double elements[9]);
96 void GetPosition(
double pos[2]);
99 this->GetPosition(temp);
100 pos[0] =
static_cast<float>(temp[0]);
101 pos[1] =
static_cast<float>(temp[1]); }
119 void TransformPoints(
const float *inPts,
float *outPts,
int n);
124 void TransformPoints(
const double *inPts,
double *outPts,
int n);
133 void InverseTransformPoints(
const float *inPts,
float *outPts,
int n);
138 void InverseTransformPoints(
const double *inPts,
double *outPts,
int n);
149 this->GetMatrix()->MultiplyPoint(in,out);};
151 this->GetMatrix()->MultiplyPoint(in,out);};