direction method
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));