rotationInstanceTXY static method

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

Creates a transformation for a rotation about the point (x,y) by an angle theta. Positive angles correspond to a rotation in the counter-clockwise direction.

@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 a transformation for the rotation

Implementation

static AffineTransformation rotationInstanceTXY(
    double theta, double x, double y) {
  return rotationInstanceSinCosXY(math.sin(theta), math.cos(theta), x, y);
}