Skip to content
Snippets Groups Projects
Commit 07228515 authored by Martin Schönherr's avatar Martin Schönherr :speech_balloon:
Browse files

fix vertex

parent 658b47a1
No related branches found
No related tags found
1 merge request!72Clean up grid generator
......@@ -120,7 +120,7 @@ real Vertex::getInnerAngle(const Vertex &w) const
real mag = this->getMagnitude() * w.getMagnitude();
real skal = *this * w;
if (mag - fabs(skal) < 0.0001)
if (mag - std::abs(skal) < 0.0001)
return 0.0f;
return vf::Math::acosReal(skal / mag) * 180.0f / vf::Math::acosReal(-1.0f); // acos(-1.0f) = PI
}
......
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