setRotationY method

void setRotationY(
  1. double radians
)

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

Implementation

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