Matrix2.rotation constructor

Matrix2.rotation(double radians)

Rotation of radians.

Implementation

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