mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-10 11:32:15 +00:00
Do not use the ratios when checking the relation of endpoints and the other segment. The ratios depend on segment lengths and if one of the segments was a lot longer than the other one the direction and intersection results were inconsistent. E.g. the endpoints of one segment was detected inside/outside the longer segment and in the same time (using different check) both endpoints was detected equal to one of the endpoints of the longer segment. Then depending on the order of the segments 2 intersection points were generated or 1 which could cause an assertion failure in turn handler.