calc_sector_angle: Check for real division by zero not with epsilon that was way to large

This commit is contained in:
Jan Möbius
2018-01-05 11:05:08 +01:00
parent 62c22a0100
commit 548a73bfad
2 changed files with 2 additions and 1 deletions

View File

@@ -445,7 +445,7 @@ public:
Normal v0, v1;
calc_sector_vectors(_in_heh, v0, v1);
Scalar denom = v0.norm()*v1.norm();
if (is_zero(denom))
if ( denom == Scalar(0))
{
return 0;
}