mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-09 23:22:10 +00:00
[util][math][spheroid] replace calls to math::fmod() by calls to math::mod()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user