Rotates the shape by the given angle (in radians) around the origin. If origin is omitted, rotates around the shape's centroid.
angle
origin
T rotate(double angle, [Point<num>? origin]);