Skip to content

Commit

Permalink
Fix abs() warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jul 3, 2018
1 parent 85da39a commit 045b88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/3d/qgsraycastingutils_p.cpp
Expand Up @@ -238,7 +238,7 @@ namespace QgsRayCastingUtils
bool rayPlaneIntersection( const Ray3D &r, const Plane3D &plane, QVector3D &pt )
{
float denom = QVector3D::dotProduct( plane.normal, r.direction() );
if ( abs( denom ) > 0.0001f ) // your favorite epsilon
if ( std::abs( denom ) > 0.0001f ) // your favorite epsilon
{
float t = QVector3D::dotProduct( plane.center - r.origin(), plane.normal ) / denom;
if ( t >= 0 )
Expand Down

0 comments on commit 045b88e

Please sign in to comment.