makeRotationX method

Matrix4 makeRotationX(
  1. num theta
)

Implementation

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

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

  return this;
}