diff options
Diffstat (limited to 'boost/geometry/formulas/meridian_direct.hpp')
-rw-r--r-- | boost/geometry/formulas/meridian_direct.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/boost/geometry/formulas/meridian_direct.hpp b/boost/geometry/formulas/meridian_direct.hpp index f8e73f57c6..330af6703f 100644 --- a/boost/geometry/formulas/meridian_direct.hpp +++ b/boost/geometry/formulas/meridian_direct.hpp @@ -1,7 +1,8 @@ // Boost.Geometry -// Copyright (c) 2018 Oracle and/or its affiliates. +// Copyright (c) 2023 Adam Wulkiewicz, Lodz, Poland. +// Copyright (c) 2018 Oracle and/or its affiliates. // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle @@ -127,14 +128,14 @@ public: CT mp = formula::quarter_meridian<CT>(spheroid); CT mu = geometry::math::pi<CT>()/CT(2) * m / mp; - if (Order == 0) + if (BOOST_GEOMETRY_CONDITION(Order == 0)) { return mu; } CT H2 = 1.5 * n; - if (Order == 1) + if (BOOST_GEOMETRY_CONDITION(Order == 1)) { return mu + H2 * sin(2*mu); } @@ -142,7 +143,7 @@ public: CT n2 = n * n; CT H4 = 1.3125 * n2; - if (Order == 2) + if (BOOST_GEOMETRY_CONDITION(Order == 2)) { return mu + H2 * sin(2*mu) + H4 * sin(4*mu); } @@ -151,7 +152,7 @@ public: H2 -= 0.84375 * n3; CT H6 = 1.572916667 * n3; - if (Order == 3) + if (BOOST_GEOMETRY_CONDITION(Order == 3)) { return mu + H2 * sin(2*mu) + H4 * sin(4*mu) + H6 * sin(6*mu); } |