From 53ed7b1b3a2c85aa8659b0c2f48643dc1938c4c4 Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Wed, 16 Jun 2010 21:12:31 +0000 Subject: [PATCH] use std::abs() from instead of abs() from git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@337 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- sources/reactphysics3d/collision/SATAlgorithm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/reactphysics3d/collision/SATAlgorithm.cpp b/sources/reactphysics3d/collision/SATAlgorithm.cpp index e1e600b0..68fe2e69 100644 --- a/sources/reactphysics3d/collision/SATAlgorithm.cpp +++ b/sources/reactphysics3d/collision/SATAlgorithm.cpp @@ -24,6 +24,7 @@ #include "../constraint/Contact.h" #include #include +#include #include #include // TODO : Delete this @@ -436,7 +437,7 @@ double SATAlgorithm::computePenetrationDepth(double min1, double max1, double mi double penetrationDepth = (lengthInterval1 + lengthInterval2) - lengthBothIntervals; // Find which interval is at the left of the other - if (abs(max1-min2) <= abs(max2-min1)) { + if (std::abs(max1-min2) <= std::abs(max2-min1)) { // Right of interval 1 collides with the left of interval 2 side = true; }