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

[GL/MaL] Subst./remove scalarTriple.

parent a5ab6732
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ MinimalBoundingSphere::MinimalBoundingSphere(MathLib::Point3d const& p,
if (!MathLib::isCoplanar(p, q, r, s))
{
double const denom = 2.0 * MathLib::scalarTriple(va, vb, vc);
double const denom = 2.0 * va.cross(vb).dot(vc);
Eigen::Vector3d o =
(vc.dot(vc) * va.cross(vb) + vb.dot(vb) * vc.cross(va) +
va.dot(va) * vb.cross(vc)) /
......
......@@ -52,10 +52,4 @@ double getAngle(Point3d const& p0, Point3d const& p1, Point3d const& p2)
return std::acos(v0.dot(v1) / (v0.norm() * v1.norm()));
}
double scalarTriple(Eigen::Vector3d const& u, Eigen::Vector3d const& v,
Eigen::Vector3d const& w)
{
return u.cross(v).dot(w);
}
} // namespace MathLib
......@@ -91,8 +91,4 @@ double calcProjPntToLineAndDists(MathLib::Point3d const& pp,
* @return the angle between the edges
*/
double getAngle(Point3d const& p0, Point3d const& p1, Point3d const& p2);
/// Calculates the scalar triple (u x v) . w
double scalarTriple(Eigen::Vector3d const& u, Eigen::Vector3d const& v,
Eigen::Vector3d const& w);
} // namespace MathLib
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