rotate function

List<num> rotate(
  1. List<num> m,
  2. num angleInRadians
)

Multiplies by a 2D rotation matrix m the matrix to be multiplied angleInRadians amount to rotate in radians

Implementation

List<num> rotate(List<num> m, num angleInRadians) {
  return multiply(m, rotation(angleInRadians));
}