rotateX method Null safety

void rotateX(
  1. num angle
)

Implementation

void rotateX(num angle) {
  final cos = math.cos(angle);
  final sin = math.sin(angle);
  final m01 = this.m01;
  final m11 = this.m11;
  final m21 = this.m21;
  final m31 = this.m31;
  final m02 = this.m02;
  final m12 = this.m12;
  final m22 = this.m22;
  final m32 = this.m32;

  _data[04] = m01 * cos + m02 * sin;
  _data[05] = m11 * cos + m12 * sin;
  _data[06] = m21 * cos + m22 * sin;
  _data[07] = m31 * cos + m32 * sin;
  _data[08] = m02 * cos - m01 * sin;
  _data[09] = m12 * cos - m11 * sin;
  _data[10] = m22 * cos - m21 * sin;
  _data[11] = m32 * cos - m31 * sin;
}