From ff6547bc7b0099bfbfe8f3f129605e35e78ac714 Mon Sep 17 00:00:00 2001 From: Vissarion Fysikopoulos Date: Wed, 28 Mar 2018 16:59:03 +0300 Subject: [PATCH] [formulas] Fix a bug in thomas inverse formula --- include/boost/geometry/formulas/thomas_inverse.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/boost/geometry/formulas/thomas_inverse.hpp b/include/boost/geometry/formulas/thomas_inverse.hpp index 6db3285e0..cf69c9df1 100644 --- a/include/boost/geometry/formulas/thomas_inverse.hpp +++ b/include/boost/geometry/formulas/thomas_inverse.hpp @@ -1,7 +1,8 @@ // Boost.Geometry -// Copyright (c) 2015-2017 Oracle and/or its affiliates. +// Copyright (c) 2015-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 // Use, modification and distribution is subject to the Boost Software License, @@ -177,7 +178,7 @@ public: CT const pi = math::pi(); - if (BOOST_GEOMETRY_CONDITION(EnableAzimuth)) + if (BOOST_GEOMETRY_CONDITION(CalcFwdAzimuth)) { CT alpha1 = v + u; if (alpha1 > pi) @@ -188,7 +189,7 @@ public: result.azimuth = alpha1; } - if (BOOST_GEOMETRY_CONDITION(EnableReverseAzimuth)) + if (BOOST_GEOMETRY_CONDITION(CalcRevAzimuth)) { CT alpha2 = pi - (v - u); if (alpha2 > pi)