Matrix2.rotation constructor

Matrix2.rotation(
  1. double radians
)

Rotation of radians.

Implementation

factory Matrix2.rotation(double radians) =>
    Matrix2.zero()..setRotation(radians);