|
KiCad PCB EDA Suite
|
This is a general class that takes two lists of points, and finds the best fit translation and rotation to align them. More...
#include <item_realignment.h>
Classes | |
| struct | TRANSFORM |
Public Member Functions | |
| virtual std::optional< TRANSFORM > | GetTransform (const std::vector< VECTOR2I > &aPtsA, const std::vector< VECTOR2I > &aPtsB) const =0 |
| Compute the best fit transform to align the two sets of points. | |
This is a general class that takes two lists of points, and finds the best fit translation and rotation to align them.
For example, this can be used to compensate for a library component being moved and/or rotated.
There are two parts to this process:
This interface is the interface only for the second part - identifying matching points is a domain-specific problem that the caller will need to handle.
Definition at line 43 of file item_realignment.h.
|
pure virtual |
Compute the best fit transform to align the two sets of points.
The point lists have to be the same length.
| aPtsA | The "old" points |
| aPtsB | The "new" points |
Implemented in ORTHO_ITEM_REALIGNER.