div by zero fix

This commit is contained in:
Anthony J. Thibault 2017-10-10 16:22:49 -07:00
parent cbb0d27f68
commit fe57a20979

View file

@ -42,7 +42,7 @@ static bool isEqual(const glm::vec3& u, const glm::vec3& v) {
if (uLen == 0.0f) {
return glm::length(v) <= EPSILON;
} else {
return glm::length(u - v) / glm::length(u) <= EPSILON;
return (glm::length(u - v) / uLen) <= EPSILON;
}
}