| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:4dd92c7a-6458-9e39-3932-cf360d1a8695 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C56C:7A008:2BC67A:3BEBBE:6A5916B5 |
| html-safe-nonce | bd0f14aa89124e57be5fcb9800137338faab1635b2819b47b834439fbdeae993 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTZDOjdBMDA4OjJCQzY3QTozQkVCQkU6NkE1OTE2QjUiLCJ2aXNpdG9yX2lkIjoiMzU0MDExNzE1NzYwNTYxMTE4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 26cecfada2284e5cb7e0703c7b8c44cb555dc125923ec8039fd888e9c1b49c6c |
| hovercard-subject-tag | pull_request:3410940964 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/TheAlgorithms/Python/14416/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/292110a6de3e43f1e355fdf0e4e9c3017a091850d1c4cbbace6cc3787dfb367a/TheAlgorithms/Python/pull/14416 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/292110a6de3e43f1e355fdf0e4e9c3017a091850d1c4cbbace6cc3787dfb367a/TheAlgorithms/Python/pull/14416 |
| og:image:alt | Description
Adds a segment intersection algorithm to the geometry directory. Determines whether two 2D line segments intersect using the CLRS cross-product/orientation method (Introduction to Algor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AliAlimohammadi |
| hostname | github.com |
| expected-hostname | github.com |
| None | de7b53b927e5bfbf02672a5b2960bf82d1608d91c6d7888039c826ebf8d4ca76 |
| turbo-cache-control | no-cache |
| go-import | github.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 63476337 |
| octolytics-dimension-repository_nwo | TheAlgorithms/Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63476337 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 020f8e5d3a42ae1a22d3f297198ccfca124edd1d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/TheAlgorithms/Python/pull/14416#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F14416 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F14416 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=TheAlgorithms%2FPython |
| Reload | https://github.com/TheAlgorithms/Python/pull/14416 |
| Reload | https://github.com/TheAlgorithms/Python/pull/14416 |
| Reload | https://github.com/TheAlgorithms/Python/pull/14416 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
|
TheAlgorithms
| https://github.com/TheAlgorithms |
| Python | https://github.com/TheAlgorithms/Python |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
|
Notifications
| https://github.com/login?return_to=%2FTheAlgorithms%2FPython |
|
Fork
50.9k
| https://github.com/login?return_to=%2FTheAlgorithms%2FPython |
|
Star
223k
| https://github.com/login?return_to=%2FTheAlgorithms%2FPython |
|
Code
| https://github.com/TheAlgorithms/Python |
|
Issues
141
| https://github.com/TheAlgorithms/Python/issues |
|
Pull requests
876
| https://github.com/TheAlgorithms/Python/pulls |
|
Discussions
| https://github.com/TheAlgorithms/Python/discussions |
|
Actions
| https://github.com/TheAlgorithms/Python/actions |
|
Projects
| https://github.com/TheAlgorithms/Python/projects |
|
Wiki
| https://github.com/TheAlgorithms/Python/wiki |
|
Security and quality
0
| https://github.com/TheAlgorithms/Python/security |
|
Insights
| https://github.com/TheAlgorithms/Python/pulse |
|
Code
| https://github.com/TheAlgorithms/Python |
|
Issues
| https://github.com/TheAlgorithms/Python/issues |
|
Pull requests
| https://github.com/TheAlgorithms/Python/pulls |
|
Discussions
| https://github.com/TheAlgorithms/Python/discussions |
|
Actions
| https://github.com/TheAlgorithms/Python/actions |
|
Projects
| https://github.com/TheAlgorithms/Python/projects |
|
Wiki
| https://github.com/TheAlgorithms/Python/wiki |
|
Security and quality
| https://github.com/TheAlgorithms/Python/security |
|
Insights
| https://github.com/TheAlgorithms/Python/pulse |
| poyea | https://github.com/poyea |
| TheAlgorithms:master | https://github.com/TheAlgorithms/Python/tree/master |
| AliAlimohammadi:add-segment-intersection | https://github.com/AliAlimohammadi/Python/tree/add-segment-intersection |
| Conversation | https://github.com/TheAlgorithms/Python/pull/14416 |
| Commits5 (5) | https://github.com/TheAlgorithms/Python/pull/14416/commits |
| Checks | https://github.com/TheAlgorithms/Python/pull/14416/checks |
| Files changed | https://github.com/TheAlgorithms/Python/pull/14416/files |
| feat: add Segment Intersection algorithm | https://github.com/TheAlgorithms/Python/pull/14416#top |
| poyea | https://github.com/poyea |
| TheAlgorithms:master | https://github.com/TheAlgorithms/Python/tree/master |
| AliAlimohammadi:add-segment-intersection | https://github.com/AliAlimohammadi/Python/tree/add-segment-intersection |
|
| https://github.com/AliAlimohammadi |
| AliAlimohammadi | https://github.com/AliAlimohammadi |
| Mar 17, 2026 | https://github.com/TheAlgorithms/Python/pull/14416#issue-4090254869 |
| CONTRIBUTING.md | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| type hints | https://docs.python.org/3/library/typing.html |
| doctests | https://docs.python.org/3/library/doctest.html |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
| AliAlimohammadi | https://github.com/AliAlimohammadi |
| March 17, 2026 11:01 | https://github.com/TheAlgorithms/Python/pull/14416#commits-pushed-2acbced |
|
| https://github.com/AliAlimohammadi |
| feat: add Segment Intersection algorithm | https://github.com/TheAlgorithms/Python/pull/14416/commits/2acbced7f69da62345103f124940aec79714186f |
| 2acbced | https://github.com/TheAlgorithms/Python/pull/14416/commits/2acbced7f69da62345103f124940aec79714186f |
|
| https://github.com/AliAlimohammadi |
| Merge branch 'TheAlgorithms:master' into add-segment-intersection | https://github.com/TheAlgorithms/Python/pull/14416/commits/ca948eec5e475ee9962c1627c874438ef193296f |
| ca948ee | https://github.com/TheAlgorithms/Python/pull/14416/commits/ca948eec5e475ee9962c1627c874438ef193296f |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
require descriptive names
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20descriptive%20names%22 |
| Mar 17, 2026 | https://github.com/TheAlgorithms/Python/pull/14416#event-23654145830 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Mar 17, 2026
| https://github.com/TheAlgorithms/Python/pull/14416#pullrequestreview-3962762685 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/14416/files/2acbced7f69da62345103f124940aec79714186f |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/14416#pullrequestreview-3962762685 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
| geometry/segment_intersection.py | https://github.com/TheAlgorithms/Python/pull/14416/files/2acbced7f69da62345103f124940aec79714186f#diff-73f84fab41c4217102f21419b91bc295eb76cea0dac68f7cf40b901ba53e72d8 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
| geometry/segment_intersection.py | https://github.com/TheAlgorithms/Python/pull/14416/files/2acbced7f69da62345103f124940aec79714186f#diff-73f84fab41c4217102f21419b91bc295eb76cea0dac68f7cf40b901ba53e72d8 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Mar 17, 2026
| https://github.com/TheAlgorithms/Python/pull/14416#pullrequestreview-3962762759 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/14416/files/ca948eec5e475ee9962c1627c874438ef193296f |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/14416#pullrequestreview-3962762759 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
| geometry/segment_intersection.py | https://github.com/TheAlgorithms/Python/pull/14416/files/ca948eec5e475ee9962c1627c874438ef193296f#diff-73f84fab41c4217102f21419b91bc295eb76cea0dac68f7cf40b901ba53e72d8 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
| geometry/segment_intersection.py | https://github.com/TheAlgorithms/Python/pull/14416/files/ca948eec5e475ee9962c1627c874438ef193296f#diff-73f84fab41c4217102f21419b91bc295eb76cea0dac68f7cf40b901ba53e72d8 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
awaiting reviews
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22 |
| Mar 17, 2026 | https://github.com/TheAlgorithms/Python/pull/14416#event-23654146997 |
|
| https://github.com/AliAlimohammadi |
| fix: use descriptive parameter names | https://github.com/TheAlgorithms/Python/pull/14416/commits/d1cbb018835dd89209403e034b431ac4dfc1e446 |
| d1cbb01 | https://github.com/TheAlgorithms/Python/pull/14416/commits/d1cbb018835dd89209403e034b431ac4dfc1e446 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
require descriptive names
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20descriptive%20names%22 |
| Mar 17, 2026 | https://github.com/TheAlgorithms/Python/pull/14416#event-23654265617 |
| https://github.com/AliAlimohammadi |
| AliAlimohammadi | https://github.com/AliAlimohammadi |
| Mar 17, 2026 | https://github.com/TheAlgorithms/Python/pull/14416#issuecomment-4077034491 |
| @poyea | https://github.com/poyea |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
| https://github.com/mindaugl |
| mindaugl | https://github.com/mindaugl |
|
Mar 19, 2026
| https://github.com/TheAlgorithms/Python/pull/14416#pullrequestreview-3977376595 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/14416/files/28ab42e466eadca06f8636ae495c8edbd81c0e67 |
|
| https://github.com/AliAlimohammadi |
| Merge branch 'master' into add-segment-intersection | https://github.com/TheAlgorithms/Python/pull/14416/commits/42c8e436fb2f89265161a1d785a64bdc36d3763d |
| 42c8e43 | https://github.com/TheAlgorithms/Python/pull/14416/commits/42c8e436fb2f89265161a1d785a64bdc36d3763d |
| https://github.com/AliAlimohammadi |
| AliAlimohammadi | https://github.com/AliAlimohammadi |
| Apr 7, 2026 | https://github.com/TheAlgorithms/Python/pull/14416#issuecomment-4202171666 |
| @poyea | https://github.com/poyea |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
|
| https://github.com/poyea |
| Merge branch 'master' into add-segment-intersection | https://github.com/TheAlgorithms/Python/pull/14416/commits/28ab42e466eadca06f8636ae495c8edbd81c0e67 |
| 28ab42e | https://github.com/TheAlgorithms/Python/pull/14416/commits/28ab42e466eadca06f8636ae495c8edbd81c0e67 |
| https://github.com/poyea |
| poyea | https://github.com/poyea |
| May 18, 2026 21:53 | https://github.com/TheAlgorithms/Python/pull/14416#event-25679175021 |
| https://github.com/poyea |
| poyea | https://github.com/poyea |
|
May 18, 2026
| https://github.com/TheAlgorithms/Python/pull/14416#pullrequestreview-4314255869 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/14416/files/28ab42e466eadca06f8636ae495c8edbd81c0e67 |
| https://github.com/poyea |
| poyea | https://github.com/poyea |
| abf7168 | https://github.com/TheAlgorithms/Python/commit/abf7168f572cb42db0783fac02763869be43201d |
| May 18, 2026 | https://github.com/TheAlgorithms/Python/pull/14416#event-25679180745 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
awaiting reviews
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22 |
| May 18, 2026 | https://github.com/TheAlgorithms/Python/pull/14416#event-25679181305 |
| https://github.com/AliAlimohammadi |
| AliAlimohammadi | https://github.com/AliAlimohammadi |
| May 19, 2026 03:24 | https://github.com/TheAlgorithms/Python/pull/14416#event-25686844017 |
| https://github.co/hiddenchars |
| https://github.com/TheAlgorithms/Python/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F14416 |
|
| https://github.com/poyea |
|
poyea
| https://github.com/poyea |
|
| https://github.com/TheAlgorithms/Python/pull/14416/files/28ab42e466eadca06f8636ae495c8edbd81c0e67 |
|
| https://github.com/apps/algorithms-keeper |
|
algorithms-keeper[bot]
| https://github.com/apps/algorithms-keeper |
|
| https://github.com/TheAlgorithms/Python/pull/14416/files/ca948eec5e475ee9962c1627c874438ef193296f |
|
| https://github.com/mindaugl |
|
mindaugl
| https://github.com/mindaugl |
|
| https://github.com/TheAlgorithms/Python/pull/14416/files/28ab42e466eadca06f8636ae495c8edbd81c0e67 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14416 |
|
| https://github.com/AliAlimohammadi |
|
| https://github.com/poyea |
|
| https://github.com/mindaugl |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |