Commit 0fafffbe authored by Jund Thomas's avatar Jund Thomas

call to abs(int) instead of abs(float) on given config. due to use of include...

call to abs(int) instead of abs(float) on given config. due to use of include math.h instead of <cmath>
parent 966fe39f
......@@ -117,7 +117,7 @@ void Plane3D<T>::project(Vector<3,T>& p) const
{
#define PRECISION 1e-10
T d = -distance(p) ;
if(abs(d) > PRECISION)
if(std::abs(d) > PRECISION)
{
Vector<3,T> v = m_normal * d ;
p += v ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment