rotateDegrees method

Matrix4Transform rotateDegrees(
  1. double angleDegrees, {
  2. Offset? origin,
})

Rotates by angleDegrees degrees (0 to 360 one turn), clockwise. If you define an origin it will have that point as the axis of rotation.

Implementation

Matrix4Transform rotateDegrees(double angleDegrees, {Offset? origin}) =>
    rotate(_toRadians(angleDegrees), origin: origin);