rotateByCenterDegrees method

Matrix4Transform rotateByCenterDegrees(
  1. double angleDegrees,
  2. Size size
)

Rotates by angleDegrees degrees (0 to 360 one turn), clockwise. The axis of rotation will be the center of the object with the given size.

Implementation

Matrix4Transform rotateByCenterDegrees(double angleDegrees, Size size) =>
    rotateByCenter(_toRadians(angleDegrees), size);