makeRotationZ method

Matrix4 makeRotationZ(
  1. double theta
)

Implementation

Matrix4 makeRotationZ(double theta) {
  final c = math.cos(theta).toDouble(), s = math.sin(theta).toDouble();

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

  return this;
}