rotateTXY method

AffineTransformation rotateTXY(
  1. double theta,
  2. double x,
  3. double y
)

Updates the value of this transformation to that of a rotation around a given point 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 @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 rotateTXY(double theta, double x, double y) {
  compose(rotationInstanceTXY(theta, x, y));
  return this;
}