changes in order to compile with gcc 3.x

This commit is contained in:
granzuglia 2009-07-15 16:29:10 +00:00
parent bb97c3a1ec
commit b686bd1d31
1 changed files with 4 additions and 4 deletions

View File

@ -110,22 +110,22 @@ namespace vcg{
dist=(r.Origin()-goal).Norm();
const float LocalMaxScalar = (std::numeric_limits<float>::max)();
const float EPSILON = 1e-50f;
const float EPS = 1e-50f;
/* Parametri della linea */
ScalarType tx,ty,tz;
if( fabs(r.Direction().X())>EPSILON )
if( fabs(r.Direction().X())>EPS )
tx = (gx-r.Origin().X())/r.Direction().X();
else
tx =LocalMaxScalar;
if( fabs(r.Direction().Y())>EPSILON )
if( fabs(r.Direction().Y())>EPS)
ty = (gy-r.Origin().Y())/r.Direction().Y();
else
ty =LocalMaxScalar;
if( fabs(r.Direction().Z())>EPSILON )
if( fabs(r.Direction().Z())>EPS )
tz = (gz-r.Origin().Z())/r.Direction().Z();
else
tz =LocalMaxScalar;