rotationAboutZ function

Array rotationAboutZ(
  1. double angle
)

Implementation

Array rotationAboutZ(double angle) {
  return Array(values: [
    [cos(angle), -sin(angle), 0.0],
    [sin(angle), cos(angle), 0.0],
    [0.0, 0.0, 1.0]
  ]);
}