Creates an instance of Rotation class.
const Rotation({ required this.axis, int n = 1, }) : n = (n >= 0 ? n : n >= -4 ? n + 4 : -n - 4) % 4;