You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
LineSegment::getIntersection2DSValue behaves incorrectly (does not return std::nullopt) when provided a point that lies within a vertical strip defined by the segment's endpoints.
Example
This example checks function behavior on numerous points that are disjoint with the segment. It showcases erroneous examples with a red cross.
Describe the bug
LineSegment::getIntersection2DSValue behaves incorrectly (does not return
std::nullopt
) when provided a point that lies within a vertical strip defined by the segment's endpoints.Example
This example checks function behavior on numerous points that are disjoint with the segment. It showcases erroneous examples with a red cross.
scenario_simulator_v2/common/math/geometry/test/src/polygon/test_line_segment.cpp
Lines 496 to 515 in e74ea14
std::nullopt
is returned.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Function should return
std::nullopt
when provided with a point that is disjoint (with a tolerance).Current source code
scenario_simulator_v2/common/math/geometry/src/polygon/line_segment.cpp
Lines 165 to 199 in e74ea14
The text was updated successfully, but these errors were encountered: