1
0
Fork 0

fix MSVC build

This commit is contained in:
Christian Schmitt 2012-11-15 10:32:06 +01:00
parent 9df1e2a81b
commit 75515f14ba

View file

@ -1058,9 +1058,9 @@ const double isEqual2D_Epsilon = 0.000001;
static SGGeod SGGeod_snap( const SGGeod& in, double grid ) static SGGeod SGGeod_snap( const SGGeod& in, double grid )
{ {
return SGGeod::fromDegM( grid * round( in.getLongitudeDeg()/grid ), return SGGeod::fromDegM( grid * SGMisc<double>::round( in.getLongitudeDeg()/grid ),
grid * round( in.getLatitudeDeg() /grid ), grid * SGMisc<double>::round( in.getLatitudeDeg() /grid ),
grid * round( in.getElevationM() /grid ) ); grid * SGMisc<double>::round( in.getElevationM() /grid ) );
} }
static bool SGGeod_isEqual2D( const SGGeod& g0, const SGGeod& g1 ) static bool SGGeod_isEqual2D( const SGGeod& g0, const SGGeod& g1 )