rotateY method

void rotateY (num angle)

Implementation

void rotateY(num angle) {
  var cos = math.cos(angle);
  var sin = math.sin(angle);
  var m00 = this.m00;
  var m10 = this.m10;
  var m20 = this.m20;
  var m30 = this.m30;
  var m02 = this.m02;
  var m12 = this.m12;
  var m22 = this.m22;
  var 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;
}