Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all setRotationMatrix() takes constant reference #521

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

AAArthurLiu
Copy link
Contributor

@AAArthurLiu AAArthurLiu commented Aug 9, 2023

The functions setRotationMatrix() of Sim3 and Sim2 takes a reference instead of a constant reference (currently in Sim3):

void Sophus::Sim3Base< Derived >::setRotationMatrix(Matrix3<Scalar>& R);

Is there a particular reason? Because its implementation calls rxso3().setRotationMatrix(R);, which just needs a constant reference. Using a const reference would be more consistent and convenient.

@strasdat
Copy link
Owner

strasdat commented Jun 9, 2024

Thanks!

@strasdat strasdat merged commit 5e17b86 into strasdat:main-1.x Jun 9, 2024
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants