Skip to content
Permalink
Browse files

Fix abs() warning

  • Loading branch information
wonder-sk committed Jul 3, 2018
1 parent 85da39a commit 045b88e75bf18ae4f83e09f2dc5d73aafec724e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/3d/qgsraycastingutils_p.cpp
@@ -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 )

0 comments on commit 045b88e

Please sign in to comment.
You can’t perform that action at this time.