reflectInX static method

Geometry reflectInX(
  1. Geometry g
)

Implementation

static Geometry reflectInX(Geometry g) {
  Coordinate centre = envelopeCentre(g)!;
  AffineTransformation trans =
      AffineTransformation.scaleInstanceScaleXY(1, -1, centre.x, centre.y);
  return trans.transformGeom(g);
}