rotateZ method

void rotateZ (double angle)

Rotate this matrix angle radians around Z

Implementation

void rotateZ(double angle) {
  final double cosAngle = math.cos(angle);
  final double sinAngle = math.sin(angle);
  final double t1 = _m4storage[0] * cosAngle + _m4storage[4] * sinAngle;
  final double t2 = _m4storage[1] * cosAngle + _m4storage[5] * sinAngle;
  final double t3 = _m4storage[2] * cosAngle + _m4storage[6] * sinAngle;
  final double t4 = _m4storage[3] * cosAngle + _m4storage[7] * sinAngle;
  final double t5 = _m4storage[0] * -sinAngle + _m4storage[4] * cosAngle;
  final double t6 = _m4storage[1] * -sinAngle + _m4storage[5] * cosAngle;
  final double t7 = _m4storage[2] * -sinAngle + _m4storage[6] * cosAngle;
  final double t8 = _m4storage[3] * -sinAngle + _m4storage[7] * cosAngle;
  _m4storage[0] = t1;
  _m4storage[1] = t2;
  _m4storage[2] = t3;
  _m4storage[3] = t4;
  _m4storage[4] = t5;
  _m4storage[5] = t6;
  _m4storage[6] = t7;
  _m4storage[7] = t8;
}