rotated method

SPath rotated(
  1. double angle
)

Rotate the shape about its approximate centroid

Implementation

SPath rotated(double angle) {
  final c = centroid;
  return transformed((pt) => c + (pt - c).rotate(angle));
}