setRotationZ method

void setRotationZ (double radians)

Sets the upper 3x3 to a rotation of radians around Z

Implementation

void setRotationZ(double radians) {
  final double c = math.cos(radians);
  final double s = math.sin(radians);
  _m4storage[0] = c;
  _m4storage[1] = s;
  _m4storage[2] = 0.0;
  _m4storage[4] = -s;
  _m4storage[5] = c;
  _m4storage[6] = 0.0;
  _m4storage[8] = 0.0;
  _m4storage[9] = 0.0;
  _m4storage[10] = 1.0;
  _m4storage[3] = 0.0;
  _m4storage[7] = 0.0;
  _m4storage[11] = 0.0;
}