[util][math][spheroid] replace calls to math::fmod() by calls to math::mod()

This commit is contained in:
Menelaos Karavelas
2015-03-16 11:55:47 +02:00
parent 0570471cf8
commit 449e381fda

View File

@@ -112,14 +112,14 @@ protected:
static inline CoordinateType normalize_up(CoordinateType const& value)
{
return
math::fmod(value + constants::half_period(), constants::period())
math::mod(value + constants::half_period(), constants::period())
- constants::half_period();
}
static inline CoordinateType normalize_down(CoordinateType const& value)
{
return
math::fmod(value - constants::half_period(), constants::period())
math::mod(value - constants::half_period(), constants::period())
+ constants::half_period();
}