Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Matrix4 now uses an Eigen::Transform internally
Eigen::Transform is a wrapper for an Eigen::Matrix structure which adds functionality specific to geometric transformations, e.g. extracting the affine part from an arbitrary (projective) transformation. Our own Matrix4 class is now just interface glue for this Eigen::Transformation object, which means we no longer need to implement linear algebra ourselves. Since Matrix4 is well covered by unit tests (which still pass), there should be no mathematical problems with this change, however the code is not yet optimal since some functions are still performing maths manually using xx(), xy() etc when they could be implemented using functionality exposed directly by Eigen (some of which may be optimised using SIMD instructions).
- Loading branch information
Matthew Mott
committed
Mar 27, 2021
1 parent
f03e405
commit c137351
Showing
2 changed files
with
67 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters