(angle)
| 22 | |
| 23 | |
| 24 | def projection(angle): |
| 25 | arr = np.empty([2, 2]) |
| 26 | c = np.cos(angle) |
| 27 | s = np.sin(angle) |
| 28 | arr[0][0] = c * c |
| 29 | arr[0][1] = c * s |
| 30 | arr[1][0] = c * s |
| 31 | arr[1][1] = s * s |
| 32 | |
| 33 | return arr # This returns a rotation matrix |
| 34 | |
| 35 | |
| 36 | def reflection(angle): |
nothing calls this directly
no outgoing calls
no test coverage detected