From cf2bb9d9c728d8ae8bb2bc8b794602d8b86d921f Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Fri, 14 Nov 2014 01:11:27 +0200 Subject: [PATCH] [strategies][distance][spherical][cross_track] remove duplicate word in comments section --- .../geometry/strategies/spherical/distance_cross_track.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/geometry/strategies/spherical/distance_cross_track.hpp b/include/boost/geometry/strategies/spherical/distance_cross_track.hpp index 5919dd5b3..7a8e435a2 100644 --- a/include/boost/geometry/strategies/spherical/distance_cross_track.hpp +++ b/include/boost/geometry/strategies/spherical/distance_cross_track.hpp @@ -55,8 +55,8 @@ namespace comparable The distance d1 need when the projection of the point is is within the segment must be the true distance. However, comparable::haversine<> returns a comparable distance instead of the one needed. - To remedy this, we compute implicitly compute what is - needed. More precisely, we need to compute sin(true_d1): + To remedy this, we implicitly compute what is needed. + More precisely, we need to compute sin(true_d1): sin(true_d1) = sin(2 * asin(sqrt(d1))) = 2 * sin(asin(sqrt(d1)) * cos(asin(sqrt(d1)))