(angle)
| 10 | |
| 11 | |
| 12 | def rotation(angle): |
| 13 | arr = np.empty([2, 2]) |
| 14 | c = np.cos(angle) |
| 15 | s = np.sin(angle) |
| 16 | arr[0][0] = c |
| 17 | arr[0][1] = -s |
| 18 | arr[1][0] = s |
| 19 | arr[1][1] = c |
| 20 | |
| 21 | return arr # This returns a rotation matrix |
| 22 | |
| 23 | |
| 24 | def projection(angle): |
nothing calls this directly
no outgoing calls
no test coverage detected