directionDegrees method

Matrix4Transform directionDegrees(
  1. double directionDegrees,
  2. double distance
)

Translates by distance pixels to the direction. The direction is in degrees (0 to 360 one turn) clockwise from the positive x-axis.

Implementation

Matrix4Transform directionDegrees(
  double directionDegrees,
  double distance,
) =>
    translateOffset(
      Offset.fromDirection(
        _toRadians(directionDegrees),
        distance,
      ),
    );