direction method

Matrix4Transform direction(
  1. double directionRadians,
  2. double distance
)

Translates by distance pixels to the direction. The direction is in radians clockwise from the positive x-axis.

Implementation

Matrix4Transform direction(double directionRadians, double distance) =>
    translateOffset(Offset.fromDirection(directionRadians, distance));