rotate method
- double degrees
Rotates the current transformation matrix by the given angle in degrees.
Rotation is performed around the current origin (0,0) of the transformed coordinate system.
degrees
: The angle of rotation in degrees.
Implementation
void rotate(double degrees) {
final c = cosDegree(degrees);
final s = sinDegree(degrees);
transform(c, s, -s, c, 0.0, 0.0);
}