(pt_2d, rot_rad)
| 341 | |
| 342 | |
| 343 | def rotate_2d(pt_2d, rot_rad): |
| 344 | x = pt_2d[0] |
| 345 | y = pt_2d[1] |
| 346 | sn, cs = np.sin(rot_rad), np.cos(rot_rad) |
| 347 | xx = x * cs - y * sn |
| 348 | yy = x * sn + y * cs |
| 349 | return np.array([xx, yy], dtype=np.float32) |
| 350 | |
| 351 | |
| 352 | def gen_trans_from_patch_cv(c_x, |
no outgoing calls
no test coverage detected