Skip to content

Commit

Permalink
Make all setRotationMatrix() takes constant reference
Browse files Browse the repository at this point in the history
  • Loading branch information
AAArthurLiu authored and strasdat committed Jun 9, 2024
1 parent eaa73d5 commit 5e17b86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sophus/sim2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ class Sim2Base {

/// Setter of complex number using rotation matrix ``R``, leaves scale as is.
///
SOPHUS_FUNC void setRotationMatrix(Matrix2<Scalar>& R) {
SOPHUS_FUNC void setRotationMatrix(Matrix2<Scalar> const& R) {
rxso2().setRotationMatrix(R);
}

Expand Down
2 changes: 1 addition & 1 deletion sophus/sim3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class Sim3Base {

/// Setter of quaternion using rotation matrix ``R``, leaves scale as is.
///
SOPHUS_FUNC void setRotationMatrix(Matrix3<Scalar>& R) {
SOPHUS_FUNC void setRotationMatrix(Matrix3<Scalar> const& R) {
rxso3().setRotationMatrix(R);
}

Expand Down

0 comments on commit 5e17b86

Please sign in to comment.