Skip to content

Commit 642c00f

Browse files
juan-c-sadamant-pwn
authored andcommitted
Update intersecting_segments.md
The function does not count all intersections. It only returns a pair of intersecting segment Id's if exist
1 parent 15f87c0 commit 642c00f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/geometry/intersecting_segments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pair<int, int> solve(const vector<seg>& a) {
162162
}
163163
```
164164
165-
The main function here is `solve()`, which returns the number of found intersecting segments, or $(-1, -1)$, if there are no intersections.
165+
The main function here is `solve()`, which returns the intersecting segments if exists, or $(-1, -1)$, if there are no intersections.
166166
167167
Checking for the intersection of two segments is carried out by the `intersect ()` function, using an **algorithm based on the oriented area of the triangle**.
168168

0 commit comments

Comments
 (0)