Skip to content

Commit

Permalink
Math: Update error tolerance in angleToFrontUpVec() assert
Browse files Browse the repository at this point in the history
Fixes: bug #1307
  • Loading branch information
dscharrer committed Jan 4, 2019
1 parent 89c27c4 commit 287ec54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics/Math.cpp
Expand Up @@ -474,7 +474,7 @@ std::pair<Vec3f, Vec3f> angleToFrontUpVec(const Anglef & angle) {
Vec3f front = angleToVector(angle);
Vec3f up = angleToVector(angle + Anglef(90.f, 0, 0));

arx_assert_msg(glm::abs(glm::dot(front, up)) < 5.f * std::numeric_limits<float>::epsilon(),
arx_assert_msg(glm::abs(glm::dot(front, up)) < 10.f * std::numeric_limits<float>::epsilon(),
"front=(%f,%f,%f) and up=(%f,%f,%f) should be orthogonal; dot=%1f*epsilon",
double(front.x), double(front.y), double(front.z),
double(up.x), double(up.y), double(up.z),
Expand Down

0 comments on commit 287ec54

Please sign in to comment.