rotatedZ method
Returns this multiplied by a rotation of radians around the z axis.
Note the order.
Implementation
Matrix4 rotatedZ(double radians) {
final c = math.cos(radians);
final s = math.sin(radians);
return .new(
// dart format off
(this[0] * c) + (this[4] * s),
(this[1] * c) + (this[5] * s),
(this[2] * c) + (this[6] * s),
(this[3] * c) + (this[7] * s),
(this[0] * -s) + (this[4] * c),
(this[1] * -s) + (this[5] * c),
(this[2] * -s) + (this[6] * c),
(this[3] * -s) + (this[7] * c),
this[8], this[9], this[10], this[11],
this[12], this[13], this[14], this[15],
// dart format on
);
}