rotateY method
- double angle
Rotate this matrix angle
radians around Y
Implementation
void rotateY(double angle) {
final cosAngle = math.cos(angle);
final sinAngle = math.sin(angle);
final t1 = _m4storage[0] * cosAngle + _m4storage[8] * -sinAngle;
final t2 = _m4storage[1] * cosAngle + _m4storage[9] * -sinAngle;
final t3 = _m4storage[2] * cosAngle + _m4storage[10] * -sinAngle;
final t4 = _m4storage[3] * cosAngle + _m4storage[11] * -sinAngle;
final t5 = _m4storage[0] * sinAngle + _m4storage[8] * cosAngle;
final t6 = _m4storage[1] * sinAngle + _m4storage[9] * cosAngle;
final t7 = _m4storage[2] * sinAngle + _m4storage[10] * cosAngle;
final t8 = _m4storage[3] * sinAngle + _m4storage[11] * cosAngle;
_m4storage[0] = t1;
_m4storage[1] = t2;
_m4storage[2] = t3;
_m4storage[3] = t4;
_m4storage[8] = t5;
_m4storage[9] = t6;
_m4storage[10] = t7;
_m4storage[11] = t8;
}