Repository navigation
Commit 9f1a49d
feat(pose,quaternion): add __imatmul__ (@=) operator
`X @= Y` now compounds poses/quaternions in place with automatic
normalization, mirroring the existing `X @ Y` (__matmul__) behaviour
but writing the normalized result back into the left operand instead
of returning a new one. Useful when a pose is updated incrementally
over many cycles and you don't want to pay for a fresh object each
time.
Added to BasePoseMatrix (covers SO2/SE2/SO3/SE3) and Quaternion
(covers Quaternion/UnitQuaternion).1 parent 6e1edea commit 9f1a49d
2 files changed
Lines changed: 40 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1360 | 1360 | | |
1361 | 1361 | | |
1362 | 1362 | | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
1363 | 1377 | | |
1364 | 1378 | | |
1365 | 1379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
671 | 697 | | |
672 | 698 | | |
673 | 699 | | |
| |||
1886 | 1912 | | |
1887 | 1913 | | |
1888 | 1914 | | |
1889 | | - | |
1890 | | - | |
1891 | 1915 | | |
1892 | 1916 | | |
1893 | 1917 | | |
| |||
0 commit comments