diff --git a/vis/include/mirror.hpp b/vis/include/mirror.hpp index 89e7aba..d624717 100644 --- a/vis/include/mirror.hpp +++ b/vis/include/mirror.hpp @@ -18,11 +18,10 @@ Eigen::Matrix mirror(const tc::Group<> &group) { auto angle = M_PI / group.get(c, r); auto dot = res.col(c).dot(res.col(r)); - res(r, c) = (cos(angle) - dot) / res(r, r); + res(r, c) = (dot - cos(angle)) / res(r, r); } res(c, c) = sqrt(1 - res.col(c).squaredNorm()); - res.col(c) *= -1; } return res;