find the quaternion used to rotate v0 to v1
(v0, v1)
| 398 | |
| 399 | |
| 400 | def qbetween_np(v0, v1): |
| 401 | ''' |
| 402 | find the quaternion used to rotate v0 to v1 |
| 403 | ''' |
| 404 | assert v0.shape[-1] == 3, 'v0 must be of the shape (*, 3)' |
| 405 | assert v1.shape[-1] == 3, 'v1 must be of the shape (*, 3)' |
| 406 | |
| 407 | v0 = torch.from_numpy(v0).float() |
| 408 | v1 = torch.from_numpy(v1).float() |
| 409 | return qbetween(v0, v1).numpy() |
| 410 | |
| 411 | |
| 412 | def lerp(p0, p1, t): |
no test coverage detected