Repository navigation
Commit faa90dd
committed
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 8b83c1f commit faa90dd
2 files changed
Lines changed: 40 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1350 | 1350 | | |
1351 | 1351 | | |
1352 | 1352 | | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
1353 | 1367 | | |
1354 | 1368 | | |
1355 | 1369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
| 669 | + | |
| 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 | + | |
669 | 695 | | |
670 | 696 | | |
671 | 697 | | |
| |||
1883 | 1909 | | |
1884 | 1910 | | |
1885 | 1911 | | |
1886 | | - | |
1887 | | - | |
1888 | 1912 | | |
1889 | 1913 | | |
1890 | 1914 | | |
| |||
0 commit comments