Skip to content
Snippets Groups Projects
Commit 8b838bdc authored by Tom Fischer's avatar Tom Fischer
Browse files

[MaL] Use dot-product instead of transpose.

parent f670becb
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,7 @@ double getAngle(Point3d const& p0, Point3d const& p1, Point3d const& p2)
Eigen::Vector3d const v1 = c - b;
// apply Cauchy Schwarz inequality
return std::acos(
(v0.transpose() * v1 / (v0.norm() * v1.norm()))(0, 0));
return std::acos(v0.dot(v1) / (v0.norm() * v1.norm()));
}
double scalarTriple(Eigen::Vector3d const& u, Eigen::Vector3d const& v,
......
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