{"id":16641997,"url":"https://github.com/make-github-pseudonymous-again/js-convex-hull-2d","last_synced_at":"2025-04-05T01:25:43.741Z","repository":{"id":57099753,"uuid":"43005248","full_name":"make-github-pseudonymous-again/js-convex-hull-2d","owner":"make-github-pseudonymous-again","description":":gem: Convex hull algorithms in R² for JavaScript","archived":false,"fork":false,"pushed_at":"2021-04-26T14:08:52.000Z","size":471,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T01:04:47.254Z","etag":null,"topics":["agpl","algorithms","computational-geometry","computer-science","convex-hull","convex-hull-algorithms","javascript"],"latest_commit_sha":null,"homepage":"https://make-github-pseudonymous-again.github.io/js-convex-hull-2d","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/make-github-pseudonymous-again.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":"2015-09-23T14:14:00.000Z","updated_at":"2022-01-01T20:32:16.000Z","dependencies_parsed_at":"2022-08-22T23:10:31.046Z","dependency_job_id":null,"html_url":"https://github.com/make-github-pseudonymous-again/js-convex-hull-2d","commit_stats":null,"previous_names":["aureooms/js-convex-hull-2d"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-github-pseudonymous-again%2Fjs-convex-hull-2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-github-pseudonymous-again%2Fjs-convex-hull-2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-github-pseudonymous-again%2Fjs-convex-hull-2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-github-pseudonymous-again%2Fjs-convex-hull-2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/make-github-pseudonymous-again","download_url":"https://codeload.github.com/make-github-pseudonymous-again/js-convex-hull-2d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247273982,"owners_count":20912027,"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":["agpl","algorithms","computational-geometry","computer-science","convex-hull","convex-hull-algorithms","javascript"],"created_at":"2024-10-12T07:48:32.946Z","updated_at":"2025-04-05T01:25:43.713Z","avatar_url":"https://github.com/make-github-pseudonymous-again.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[js-convex-hull-2d](http://make-github-pseudonymous-again.github.io/js-convex-hull-2d)\n==\n\nConvex hull algorithms in two dimensions. Parent is\n[aureooms/js-cg](https://github.com/make-github-pseudonymous-again/js-cg).\n\n```js\n//                 * - \u003c - * - \u003c - *\n//                /                 \\\n// hi[0] = lo[0] *                   * hi[p + 1] = lo[q + 1]\n//                \\                 /\n//                 * - \u003e - * - \u003e - *\n```\n\n[![License](https://img.shields.io/github/license/make-github-pseudonymous-again/js-convex-hull-2d.svg?style=flat)](https://raw.githubusercontent.com/make-github-pseudonymous-again/js-convex-hull-2d/master/LICENSE)\n[![NPM version](https://img.shields.io/npm/v/@aureooms/js-convex-hull-2d.svg?style=flat)](https://www.npmjs.org/package/@aureooms/js-convex-hull-2d)\n[![Bower version](https://img.shields.io/bower/v/@aureooms/js-convex-hull-2d.svg?style=flat)](http://bower.io/search/?q=@aureooms/js-convex-hull-2d)\n[![Build Status](https://img.shields.io/travis/make-github-pseudonymous-again/js-convex-hull-2d.svg?style=flat)](https://travis-ci.org/make-github-pseudonymous-again/js-convex-hull-2d)\n[![Coverage Status](https://img.shields.io/coveralls/make-github-pseudonymous-again/js-convex-hull-2d.svg?style=flat)](https://coveralls.io/r/make-github-pseudonymous-again/js-convex-hull-2d)\n[![Dependencies Status](https://img.shields.io/david/make-github-pseudonymous-again/js-convex-hull-2d.svg?style=flat)](https://david-dm.org/make-github-pseudonymous-again/js-convex-hull-2d#info=dependencies)\n[![devDependencies Status](https://img.shields.io/david/dev/make-github-pseudonymous-again/js-convex-hull-2d.svg?style=flat)](https://david-dm.org/make-github-pseudonymous-again/js-convex-hull-2d#info=devDependencies)\n[![Code Climate](https://img.shields.io/codeclimate/github/make-github-pseudonymous-again/js-convex-hull-2d.svg?style=flat)](https://codeclimate.com/github/make-github-pseudonymous-again/js-convex-hull-2d)\n[![NPM downloads per month](https://img.shields.io/npm/dm/@aureooms/js-convex-hull-2d.svg?style=flat)](https://www.npmjs.org/package/@aureooms/js-convex-hull-2d)\n[![GitHub issues](https://img.shields.io/github/issues/make-github-pseudonymous-again/js-convex-hull-2d.svg?style=flat)](https://github.com/make-github-pseudonymous-again/js-convex-hull-2d/issues)\n[![Inline docs](http://inch-ci.org/github/make-github-pseudonymous-again/js-convex-hull-2d.svg?branch=master\u0026style=shields)](http://inch-ci.org/github/make-github-pseudonymous-again/js-convex-hull-2d)\n\nCan be managed through [jspm](https://github.com/jspm/jspm-cli),\n[duo](https://github.com/duojs/duo),\n[component](https://github.com/componentjs/component),\n[bower](https://github.com/bower/bower),\n[ender](https://github.com/ender-js/Ender),\n[jam](https://github.com/caolan/jam),\n[spm](https://github.com/spmjs/spm),\nand [npm](https://github.com/npm/npm).\n\n## Install\n\n### jspm\n```terminal\njspm install github:aureooms/js-convex-hull-2d\n# or\njspm install npm:@aureooms/js-convex-hull-2d\n```\n### duo\nNo install step needed for duo!\n\n### component\n```terminal\ncomponent install aureooms/js-convex-hull-2d\n```\n\n### bower\n```terminal\nbower install @aureooms/js-convex-hull-2d\n```\n\n### ender\n```terminal\nender add @aureooms/js-convex-hull-2d\n```\n\n### jam\n```terminal\njam install @aureooms/js-convex-hull-2d\n```\n\n### spm\n```terminal\nspm install @aureooms/js-convex-hull-2d --save\n```\n\n### npm\n```terminal\nnpm install @aureooms/js-convex-hull-2d --save\n```\n\n## Require\n### jspm\n```js\nlet convexhull2d = require( \"github:aureooms/js-convex-hull-2d\" ) ;\n// or\nimport convexhull2d from '@aureooms/js-convex-hull-2d' ;\n```\n### duo\n```js\nlet convexhull2d = require( \"aureooms/js-convex-hull-2d\" ) ;\n```\n\n### component, ender, spm, npm\n```js\nlet convexhull2d = require( \"@aureooms/js-convex-hull-2d\" ) ;\n```\n\n### bower\nThe script tag exposes the global variable `convexhull2d`.\n```html\n\u003cscript src=\"bower_components/@aureooms/js-convex-hull-2d/js/dist/convex-hull-2d.min.js\"\u003e\u003c/script\u003e\n```\nAlternatively, you can use any tool mentioned [here](http://bower.io/docs/tools/).\n\n### jam\n```js\nrequire( [ \"@aureooms/js-convex-hull-2d\" ] , function ( convexhull2d ) { ... } ) ;\n```\n\n## Space\n\nThe 2^d space system object must have the following static methods:\n\n```js\nspace.crs( a , b , c ) ; // compute the cross product of ab and bc\nspace.dot( a , b , c ) ; // compute the dot product of ab and bc\nspace.col( a , b , c ) ; // test whether 3 points are colinear\nspace.pit( x , a , b , c ) ; // test whether x is in triangle abc\nspace.lex( a , b ) ; // \u003e 0 if a comes before b in lex order\nspace.colex( a , b ) ; // \u003e 0 if a comes before b in colex order\nspace.ccw( crs , dot , x ) ; // defines a counter clockwise ordering around x\n```\n\n## Reference\n\n  - https://github.com/mikolalysenko/convex-hull\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmake-github-pseudonymous-again%2Fjs-convex-hull-2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmake-github-pseudonymous-again%2Fjs-convex-hull-2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmake-github-pseudonymous-again%2Fjs-convex-hull-2d/lists"}