MutableAffine.rotation constructor
MutableAffine.rotation(
- double a
Create a matrix representing a rotation transform, for the
angle a
in radians.
Implementation
MutableAffine.rotation(double a)
: _storage = Matrix3.zero(),
super._p() {
final c = cos(a);
final s = sin(a);
set(0, 0, c);
set(0, 1, -s);
set(1, 0, s);
set(1, 1, c);
set(2, 2, 1);
}