Skip to main content

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

Point point.rotate(float angle, Point center)

Example

An example of the Point.rotate() method