reflectXY method

AffineTransformation reflectXY(
  1. double x,
  2. double y
)

Updates the value of this transformation to that of a reflection transformation composed with the current value.

@param x the x-ordinate of the line to reflect around @param y the y-ordinate of the line to reflect around @return this transformation, with an updated matrix

Implementation

AffineTransformation reflectXY(double x, double y) {
  compose(reflectionInstanceXY(x, y));
  return this;
}