Skip to content

Commit

Permalink
Merge 83199f3 into 61f9a98
Browse files Browse the repository at this point in the history
  • Loading branch information
Dvad committed Sep 22, 2023
2 parents 61f9a98 + 83199f3 commit 1429549
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sophus/so2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ class SO2Base {
Scalar const& real = unit_complex().x();
Scalar const& imag = unit_complex().y();
return HomogeneousPointProduct<HPointDerived>(
real * p[0] - imag * p[1], imag * p[0] + real * p[1], p[2]);
real * p[0] - imag * p[1],
imag * p[0] + real * p[1],
static_cast<ReturnScalar<HPointDerived>>(p[2])
);
}

/// Group action on lines.
Expand Down

0 comments on commit 1429549

Please sign in to comment.