Skip to content

Geometry Classes (Rotation2d, Translation2d, etc.) EJML question #7562

Answered by calcmogul
narmstro2020 asked this question in Q&A
Discussion options

You must be logged in to vote

Using matrix/vector types instead of native types like double internally would massively hurt performance due to the allocation overhead. Rewriting Quaternion to use doubles instead of Vector in #5525 gave a 100x performance improvement for Rotation3d.rotateBy().

Furthermore, matrix representations of Rotation2d/3d and Pose2d/3d require more FLOPs than what we use now.

If you're after interoperability with affine transformation matrices, we added that in #7430.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@narmstro2020
Comment options

@calcmogul
Comment options

@narmstro2020
Comment options

@calcmogul
Comment options

@narmstro2020
Comment options

Answer selected by narmstro2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants