setToRotationTXY method
Sets this transformation to be a rotation around a given point (x,y). A positive rotation angle corresponds to a counter-clockwise rotation. The transformation matrix for a rotation by an angle theta has the value:
| cosTheta -sinTheta x-x*cos+y*sin | | sinTheta cosTheta y-x*sin-y*cos | | 0 0 1 |
@param theta the rotation angle, in radians @param x the x-ordinate of the rotation point @param y the y-ordinate of the rotation point @return this transformation, with an updated matrix
Implementation
AffineTransformation setToRotationTXY(double theta, double x, double y) {
setToRotationSinCosXY(math.sin(theta), math.cos(theta), x, y);
return this;
}