Skip to content

Commit 045b88e

Browse files
committedJul 3, 2018
Fix abs() warning
1 parent 85da39a commit 045b88e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/3d/qgsraycastingutils_p.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ namespace QgsRayCastingUtils
238238
bool rayPlaneIntersection( const Ray3D &r, const Plane3D &plane, QVector3D &pt )
239239
{
240240
float denom = QVector3D::dotProduct( plane.normal, r.direction() );
241-
if ( abs( denom ) > 0.0001f ) // your favorite epsilon
241+
if ( std::abs( denom ) > 0.0001f ) // your favorite epsilon
242242
{
243243
float t = QVector3D::dotProduct( plane.center - r.origin(), plane.normal ) / denom;
244244
if ( t >= 0 )

0 commit comments

Comments
 (0)
Please sign in to comment.