reflectionInstance static method
Creates a transformation for a reflection about the line (x0,y0) - (x1,y1).
@param x0 the x-ordinate of a point on the reflection line @param y0 the y-ordinate of a point on the reflection line @param x1 the x-ordinate of a another point on the reflection line @param y1 the y-ordinate of a another point on the reflection line @return a transformation for the reflection
Implementation
static AffineTransformation reflectionInstance(
double x0, double y0, double x1, double y1) {
AffineTransformation trans = new AffineTransformation();
trans.setToReflection(x0, y0, x1, y1);
return trans;
}