>>> rotation(45) # doctest: +NORMALIZE_WHITESPACE [[0.5253219888177297, -0.8509035245341184], [0.8509035245341184, 0.5253219888177297]]
(angle: float)
| 27 | |
| 28 | |
| 29 | def rotation(angle: float) -> list[list[float]]: |
| 30 | """ |
| 31 | >>> rotation(45) # doctest: +NORMALIZE_WHITESPACE |
| 32 | [[0.5253219888177297, -0.8509035245341184], |
| 33 | [0.8509035245341184, 0.5253219888177297]] |
| 34 | """ |
| 35 | c, s = cos(angle), sin(angle) |
| 36 | return [[c, -s], [s, c]] |
| 37 | |
| 38 | |
| 39 | def projection(angle: float) -> list[list[float]]: |
no test coverage detected