Skip to content
Snippets Groups Projects
Commit f40f1a68 authored by Harry Jeffery's avatar Harry Jeffery
Browse files

Refs #11020 Correct coplanarity check

parent eb44f368
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,8 @@ Projection::Projection(const V3D &u, const V3D &v) { ...@@ -26,8 +26,8 @@ Projection::Projection(const V3D &u, const V3D &v) {
} }
Projection::Projection(const V3D &u, const V3D &v, const V3D &w) { Projection::Projection(const V3D &u, const V3D &v, const V3D &w) {
if (w.scalar_prod(u.cross_prod(v)) <= 0.00001) if (fabs(w.scalar_prod(u.cross_prod(v))) <= 0.00001)
throw std::runtime_error("u, v, and w must be coplanar!"); throw std::runtime_error("u, v, and w must not be coplanar!");
m_dimensions[0] = u; m_dimensions[0] = u;
m_dimensions[1] = v; m_dimensions[1] = 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