compas-dev / compas-dev/compas

is_intersection_segment_segment_xy inconsistency for fringe case

Open
#1,077 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
386
Forks
122
Avg merge
11d 46m
Merged PRs (30d)
1

Description

```
(a, b) = [[0, 0, 0], [1, 0, 0]]
(c, d) = [[1,-1, 0], [1, 1, 0]]

from compas.geometry import is_intersection_segment_segment_xy

is_intersection_segment_segment_xy((a, b), (c, d))
# prints True

is_intersection_segment_segment_xy((a, b), (d, c))
# prints False

```
cause:
is_ccw_xy(a, c, d) != is_ccw_xy(b, c, d)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.