Skip to content

Commit

Permalink
fixed math
Browse files Browse the repository at this point in the history
  • Loading branch information
amock committed Feb 22, 2024
1 parent 65f1779 commit ec860fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rmagine_core/include/rmagine/math/types/Transform.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ template<typename DataT>
RMAGINE_INLINE_FUNCTION
Transform_<DataT> Transform_<DataT>::inv() const
{
Transform Tinv;
Tinv.R = ~R;
Transform_<DataT> Tinv;
Tinv.R = R.inv();
Tinv.t = -(Tinv.R * t);
return Tinv;
}
Expand All @@ -34,7 +34,7 @@ RMAGINE_INLINE_FUNCTION
Transform_<DataT> Transform_<DataT>::mult(const Transform_<DataT>& T2) const
{
// P_ = R1 * (R2 * P + t2) + t1;
Transform T3;
Transform_<DataT> T3;
T3.t = R * T2.t;
T3.R = R * T2.R;
T3.t += t;
Expand Down

0 comments on commit ec860fb

Please sign in to comment.