Point.rotate()

The Point.rotate() method returns a new Point that has been rotated by angle degrees around the point (center) that you pass it.

Just like the result of the Point.angle() method, an angle of 0° points right, and the angle increases counterclockwise.

Signature

Javascript
Point point.rotate(float angle, Point center)

Example