204 |
to.z = from.z; |
to.z = from.z; |
205 |
} |
} |
206 |
void performGL() const { |
void performGL() const { |
|
glTranslatef(ox, oy, 0); |
|
|
glRotatef(a, 0, 0, 1); |
|
207 |
glTranslatef(-ox, -oy, 0); |
glTranslatef(-ox, -oy, 0); |
208 |
|
glRotatef(a, 0, 0, 1); |
209 |
|
glTranslatef(ox, oy, 0); |
210 |
} |
} |
211 |
typedef RotateCenteredXY InverseType; |
typedef RotateCenteredXY InverseType; |
212 |
void inverse(InverseType &into) const { |
void inverse(InverseType &into) const { |
239 |
|
|
240 |
a = angle * 180 / M_PI; |
a = angle * 180 / M_PI; |
241 |
|
|
242 |
|
angleWasSet(); |
243 |
|
|
244 |
} |
} |
245 |
Pt getSqSize() const { |
Pt getSqSize() const { |
246 |
return Pt(2*ox, 2*oy); |
return Pt(2*ox, 2*oy); |