reflectionInstanceXY static method

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

Creates a transformation for a reflection about the line (0,0) - (x,y).

@param x the x-ordinate of a point on the reflection line @param y the y-ordinate of a point on the reflection line @return a transformation for the reflection

Implementation

static AffineTransformation reflectionInstanceXY(double x, double y) {
  AffineTransformation trans = new AffineTransformation();
  trans.setToReflectionXY(x, y);
  return trans;
}