rotate(angle, anchor) {
    const center = this.getCenter();
    const stride = this.getStride();
    this.setCenter(
      rotate(center, 0, center.length, stride, angle, anchor, center),
    );
    this.changed();
  }
Rotate the geometry around a given coordinate. This modifies the geometry
coordinates in place.
@param {number} angle Rotation angle in counter-clockwise radians.
@param {import("../coordinate.js").Coordinate} anchor The rotation center.
@api
@override