|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72240 - trunk/boost/geometry/strategies/spherical
From: barend.gehrels_at_[hidden]
Date: 2011-05-28 05:19:30
Author: barendgehrels
Date: 2011-05-28 05:19:28 EDT (Sat, 28 May 2011)
New Revision: 72240
URL: http://svn.boost.org/trac/boost/changeset/72240
Log:
Fixed side-by-cross-track (now non-default)
Text files modified:
trunk/boost/geometry/strategies/spherical/side_by_cross_track.hpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Modified: trunk/boost/geometry/strategies/spherical/side_by_cross_track.hpp
==============================================================================
--- trunk/boost/geometry/strategies/spherical/side_by_cross_track.hpp (original)
+++ trunk/boost/geometry/strategies/spherical/side_by_cross_track.hpp 2011-05-28 05:19:28 EDT (Sat, 28 May 2011)
@@ -86,10 +86,9 @@
double d1 = 0.001; // m_strategy.apply(sp1, p);
double crs_AD = detail::course(p1, p);
double crs_AB = detail::course(p1, p2);
- double XTD = geometry::math::abs(asin(sin(d1) * sin(crs_AD - crs_AB)));
+ double XTD = asin(sin(d1) * sin(crs_AD - crs_AB));
- return math::equals(XTD, 0) ? 0 : XTD > 0 ? 1 : -1;
- //return s > 0 ? 1 : s < 0 ? -1 : 0;
+ return math::equals(XTD, 0) ? 0 : XTD < 0 ? 1 : -1;
}
};
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk