setRotation method

void setRotation(
  1. double radians
)

Turns the matrix into a rotation of radians

Implementation

void setRotation(double radians) {
  final c = math.cos(radians);
  final s = math.sin(radians);
  _m2storage[0] = c;
  _m2storage[1] = s;
  _m2storage[2] = -s;
  _m2storage[3] = c;
}