makeRotationZ method

Matrix4 makeRotationZ(
  1. num theta
)

Implementation

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

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

  return this;
}