rotateSinCosXY method

AffineTransformation rotateSinCosXY(
  1. double sinTheta,
  2. double cosTheta,
  3. double x,
  4. double y,
)

Updates the value of this transformation to that of a rotation around a given point composed with the current value, with the sin and cos of the rotation angle specified directly.

@param sinTheta the sine of the angle to rotate by @param cosTheta the cosine of the angle to rotate by @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 rotateSinCosXY(
    double sinTheta, double cosTheta, double x, double y) {
  compose(rotationInstanceSinCosXY(sinTheta, cosTheta, x, y));
  return this;
}