rotateByPiMultiple static method
Rotate a geometry by an multiple of Pi radians
Implementation
static Geometry rotateByPiMultiple(
Geometry g,
// Angle (multiple of Pi)
double multipleOfPi) {
Coordinate centre = envelopeCentre(g)!;
AffineTransformation trans = AffineTransformation.rotationInstanceTXY(
multipleOfPi * math.pi, centre.x, centre.y);
return trans.transformGeom(g);
}