- Rotation - rotates the co-ordinate system (grid or graph) to a given radian
- Angle is generally measured in radiens and is measured at the top left point
- pushMatrix() is used to save the current co-ordinate system
- popMatrix() is used to go back to the previous co-ordinate system
- rotate(PI/2);
- So how can we use it?
- Move the coordinate system to the point where you want to rotate using Translation
- Then rotate to the required angle