rotateY method Null safety

void rotateY(
  1. num angle
)

Implementation

void rotateY(num angle) {
  final cos = math.cos(angle);
  final sin = math.sin(angle);
  final m00 = this.m00;
  final m10 = this.m10;
  final m20 = this.m20;
  final m30 = this.m30;
  final m02 = this.m02;
  final m12 = this.m12;
  final m22 = this.m22;
  final m32 = this.m32;

  _data[00] = m00 * cos + m02 * sin;
  _data[01] = m10 * cos + m12 * sin;
  _data[02] = m20 * cos + m22 * sin;
  _data[03] = m30 * cos + m32 * sin;
  _data[08] = m02 * cos - m00 * sin;
  _data[09] = m12 * cos - m10 * sin;
  _data[10] = m22 * cos - m20 * sin;
  _data[11] = m32 * cos - m30 * sin;
}