rotate abstract method

T rotate(
  1. double angle, [
  2. Point<num>? origin
])

Rotates the shape by the given angle (in radians) around the origin. If origin is omitted, rotates around the shape's centroid.

Implementation

T rotate(double angle, [Point<num>? origin]);