makeRotationY method

Matrix4 makeRotationY(
  1. num theta
)

Implementation

Matrix4 makeRotationY(num theta) {
  var c = Math.cos(theta).toDouble(), s = Math.sin(theta).toDouble();

  set(c, 0, s, 0, 0, 1, 0, 0, -s, 0, c, 0, 0, 0, 0, 1);

  return this;
}