setRotationX method

void setRotationX (double radians)

Turns the matrix into a rotation of radians around X

Implementation

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