mirror of
https://github.com/boostorg/geometry.git
synced 2026-07-21 13:23:38 +00:00
480e9cf0f60f53edce596b319da5d35c4c9974bf
sjoberg_intersection when a segment lies on the equator
Multiply the longitude offset term by `sign_lon_diff` when calculating equator crossings in `sjoberg_geodesic::lon_of_equator_intersection()`. Without this multiplication, when `sign_lon_diff` is negative, the offset is applied in the wrong direction, leading to a wrong intersection longitude (e.g. returning a coordinate outside of the segments' bounds). This in turn causes overlay/intersection algorithms to miss crossings on the boundary. Including regression test for sjoberg_intersection Fixes #1482
Boost.Geometry, part of collection of the Boost C++ Libraries, defines concepts, primitives and algorithms for solving geometry problems. Boost.Geometry is a C++14 header-only library.
Test results
| Branch | Build | Coverage | Regression | Documentation |
|---|---|---|---|---|
| develop | ![]() |
|||
| master | ![]() |
Directories
- doc - QuickBook documentation sources, containing embedded examples located in
doc/src/examples/ - example - Boost.Geometry standalone examples
- extensions - examples and tests for the extensions - develop branch
- include - the sourcecode of Boost.Geometry
- index - examples and tests for the Spatial Index
- meta - library metadata
- test - Boost.Geometry unit tests
Description
Languages
C++
99.7%
CMake
0.3%









