(theta, **kwargs)
| 112 | **kwargs) |
| 113 | |
| 114 | def rotate2d(theta, **kwargs): |
| 115 | return matrix( |
| 116 | [torch.cos(theta), torch.sin(-theta), 0], |
| 117 | [torch.sin(theta), torch.cos(theta), 0], |
| 118 | [0, 0, 1], |
| 119 | **kwargs) |
| 120 | |
| 121 | def rotate3d(v, theta, **kwargs): |
| 122 | vx = v[..., 0]; vy = v[..., 1]; vz = v[..., 2] |
no test coverage detected