{"id":16126916,"url":"https://github.com/mikolalysenko/exact-segment-intersect","last_synced_at":"2025-08-02T05:10:48.885Z","repository":{"id":17696153,"uuid":"20502171","full_name":"mikolalysenko/exact-segment-intersect","owner":"mikolalysenko","description":"Exactly constructs the intersection of two line segments","archived":false,"fork":false,"pushed_at":"2015-05-27T20:36:38.000Z","size":166,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T20:51:16.190Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikolalysenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-04T21:49:31.000Z","updated_at":"2022-08-02T22:15:11.000Z","dependencies_parsed_at":"2022-09-12T06:12:07.090Z","dependency_job_id":null,"html_url":"https://github.com/mikolalysenko/exact-segment-intersect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fexact-segment-intersect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fexact-segment-intersect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fexact-segment-intersect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fexact-segment-intersect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikolalysenko","download_url":"https://codeload.github.com/mikolalysenko/exact-segment-intersect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244231543,"owners_count":20419966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T21:40:58.432Z","updated_at":"2025-03-18T13:32:01.300Z","avatar_url":"https://github.com/mikolalysenko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"exact-segment-intersect\n==========================\nExactly computes the intersection of a pair of line segments as a homogeneous vector of non-overlapping increasing sequences.\n\n[![testling badge](https://ci.testling.com/mikolalysenko/exact-segment-intersect.png)](https://ci.testling.com/mikolalysenko/exact-segment-intersect)\n\n[![build status](https://secure.travis-ci.org/mikolalysenko/exact-segment-intersect.png)](http://travis-ci.org/mikolalysenko/exact-segment-intersect)\n\n# Example\n\n```javascript\nvar exactIntersect = require(\"exact-segment-intersect\")\n\nvar a = [-1,0]\nvar b = [1,0]\nvar c = [0,-1]\nvar d = [0,1]\n\nconsole.log(exactIntersect(a, b, c, d))\n```\n\nOutput:\n\n```javascript\n[ [0], [0], [1] ]\n```\n\n# Install\n\n```\nnpm install exact-segment-intersect\n```\n\n# API\n\n#### `require(\"exact-segment-intersect\")(a,b,c,d)`\nExactly computes the intersection of the line segments `[a,b]` and `[c,d]`\n\n* `a,b` are the vertices of the first segment\n* `c,d` are the vertices of the second segment\n\n**Returns** A homogeneous 3 vector encoding the exact point of intersection\n\n# Credits\n(c) 2014 Mikola Lysenko. MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Fexact-segment-intersect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikolalysenko%2Fexact-segment-intersect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Fexact-segment-intersect/lists"}