Skip to content
Snippets Groups Projects
Commit 24dfc2cb authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Add some noalias

parent c2aafe32
No related branches found
No related tags found
No related merge requests found
...@@ -442,10 +442,10 @@ public: ...@@ -442,10 +442,10 @@ public:
/// @brief set transform from rotation and translation /// @brief set transform from rotation and translation
inline void setTransform(const Matrix3f& R_, const Vec3f& T_) inline void setTransform(const Matrix3f& R_, const Vec3f& T_)
{ {
R = R_; R.noalias() = R_;
T = T_; T.noalias() = T_;
matrix_set = true;
q.fromRotation(R_); q.fromRotation(R_);
matrix_set = true;
} }
/// @brief set transform from rotation and translation /// @brief set transform from rotation and translation
...@@ -453,7 +453,7 @@ public: ...@@ -453,7 +453,7 @@ public:
{ {
matrix_set = false; matrix_set = false;
q = q_; q = q_;
T = T_; T.noalias() = T_;
} }
/// @brief set transform from rotation /// @brief set transform from rotation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment