changes in order to compile with gcc 3.x
This commit is contained in:
parent
bb97c3a1ec
commit
b686bd1d31
|
@ -110,22 +110,22 @@ namespace vcg{
|
||||||
dist=(r.Origin()-goal).Norm();
|
dist=(r.Origin()-goal).Norm();
|
||||||
|
|
||||||
const float LocalMaxScalar = (std::numeric_limits<float>::max)();
|
const float LocalMaxScalar = (std::numeric_limits<float>::max)();
|
||||||
const float EPSILON = 1e-50f;
|
const float EPS = 1e-50f;
|
||||||
|
|
||||||
/* Parametri della linea */
|
/* Parametri della linea */
|
||||||
ScalarType tx,ty,tz;
|
ScalarType tx,ty,tz;
|
||||||
|
|
||||||
if( fabs(r.Direction().X())>EPSILON )
|
if( fabs(r.Direction().X())>EPS )
|
||||||
tx = (gx-r.Origin().X())/r.Direction().X();
|
tx = (gx-r.Origin().X())/r.Direction().X();
|
||||||
else
|
else
|
||||||
tx =LocalMaxScalar;
|
tx =LocalMaxScalar;
|
||||||
|
|
||||||
if( fabs(r.Direction().Y())>EPSILON )
|
if( fabs(r.Direction().Y())>EPS)
|
||||||
ty = (gy-r.Origin().Y())/r.Direction().Y();
|
ty = (gy-r.Origin().Y())/r.Direction().Y();
|
||||||
else
|
else
|
||||||
ty =LocalMaxScalar;
|
ty =LocalMaxScalar;
|
||||||
|
|
||||||
if( fabs(r.Direction().Z())>EPSILON )
|
if( fabs(r.Direction().Z())>EPS )
|
||||||
tz = (gz-r.Origin().Z())/r.Direction().Z();
|
tz = (gz-r.Origin().Z())/r.Direction().Z();
|
||||||
else
|
else
|
||||||
tz =LocalMaxScalar;
|
tz =LocalMaxScalar;
|
||||||
|
|
Loading…
Reference in New Issue