rotate method
Updates the value of this transformation to that of a rotation transformation composed with the current value. Positive angles correspond to a rotation in the counter-clockwise direction.
@param theta the angle to rotate by, in radians @return this transformation, with an updated matrix
Implementation
AffineTransformation rotate(double theta) {
compose(rotationInstance(theta));
return this;
}