diff options
Diffstat (limited to 'boost/geometry/formulas/interpolate_point_spherical.hpp')
-rw-r--r-- | boost/geometry/formulas/interpolate_point_spherical.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/boost/geometry/formulas/interpolate_point_spherical.hpp b/boost/geometry/formulas/interpolate_point_spherical.hpp index 2e712d44ce..ad0b746997 100644 --- a/boost/geometry/formulas/interpolate_point_spherical.hpp +++ b/boost/geometry/formulas/interpolate_point_spherical.hpp @@ -1,6 +1,6 @@ // Boost.Geometry -// Copyright (c) 2019-2021 Oracle and/or its affiliates. +// Copyright (c) 2019-2023 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 @@ -12,6 +12,7 @@ #ifndef BOOST_GEOMETRY_FORMULAS_INTERPOLATE_POINT_SPHERICAL_HPP #define BOOST_GEOMETRY_FORMULAS_INTERPOLATE_POINT_SPHERICAL_HPP +#include <boost/geometry/arithmetic/normalize.hpp> #include <boost/geometry/formulas/spherical.hpp> #include <boost/geometry/geometries/point.hpp> @@ -29,7 +30,7 @@ public : void compute_angle(Point const& p0, Point const& p1, CalculationType& angle01) - { + { m_xyz0 = formula::sph_to_cart3d<point3d_t>(p0); m_xyz1 = formula::sph_to_cart3d<point3d_t>(p1); CalculationType const dot01 = geometry::dot_product(m_xyz0, m_xyz1); |