Shape::rotate()
Turns the shape about a point, from the x axis towards the y axis (anticlockwise when y points up).
Examples
Syntax
Java
.rotate(degrees, anchorX, anchorY)
Parameters
| Name | Data Type | Description |
|---|---|---|
| degrees | double | the angle |
| anchorX | double | x of the point to turn about |
| anchorY | double | y of the point to turn about |
Return
Shape