{"id":20854353,"url":"https://github.com/w8r/point-in-ellipse","last_synced_at":"2025-08-23T02:15:52.466Z","repository":{"id":57326692,"uuid":"73271833","full_name":"w8r/point-in-ellipse","owner":"w8r","description":"Determine if a point is inside of an ellipse","archived":false,"fork":false,"pushed_at":"2018-06-11T11:25:35.000Z","size":8,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-17T19:55:45.467Z","etag":null,"topics":["2d","algorithm","computational-geometry","ellipse","geometric-algorithms","point-in-ellipse"],"latest_commit_sha":null,"homepage":"https://w8r.github.io/point-in-ellipse/example/","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/w8r.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":"2016-11-09T10:00:42.000Z","updated_at":"2024-02-10T09:39:10.000Z","dependencies_parsed_at":"2022-09-21T02:01:23.147Z","dependency_job_id":null,"html_url":"https://github.com/w8r/point-in-ellipse","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w8r%2Fpoint-in-ellipse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w8r%2Fpoint-in-ellipse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w8r%2Fpoint-in-ellipse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w8r%2Fpoint-in-ellipse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/w8r","download_url":"https://codeload.github.com/w8r/point-in-ellipse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253682334,"owners_count":21946915,"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":["2d","algorithm","computational-geometry","ellipse","geometric-algorithms","point-in-ellipse"],"created_at":"2024-11-18T03:25:26.821Z","updated_at":"2025-05-12T05:31:50.115Z","avatar_url":"https://github.com/w8r.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Point in ellipse ([Demo](https://w8r.github.io/point-in-ellipse/example/)) [![npm version](https://badge.fury.io/js/point-in-ellipse.svg)](https://badge.fury.io/js/point-in-ellipse) [![TravisCI](https://travis-ci.org/w8r/point-in-ellipse.svg?branch=master)](https://travis-ci.org/w8r/point-in-ellipse)\n\n\u003cimg src=\"https://user-images.githubusercontent.com/26884/41228890-41ae99fe-6d7a-11e8-866e-b208cd1bcbdd.png\" width=\"300\" alt=\"screenshot\"\u003e\n\nDetermine if the point is inside of the ellipse or out, based on ellipse equation.\n\n# Example\n\n```js\nvar inside = require('point-in-ellipse');\n\nvar c  = [100, 100];\nvar rx = 100, ry = 200;\nvar rotation = 45 * (Math.PI / 180); // rotation in radians\n\ninside(150, 150, c[0], c[1], rx, ry, rotation);\n// true\n\n```\n\n# API\n\n```js\npointInEllipse(px, py, cx, cy, rx, ry, rotation = 0);\n```\n\n# Usage\n\n**CommonJS/Node**\n```\nnpm install -S point-in-ellipse;\n...\nvar inside = require('point-in-ellipse');\n```\n\n**Browser**\nSimply include the `index.js` file to your project, it will expose global function `pointInEllipse`;\n\n# License\n\nMIT License\n\nCopyright (c) 2016 Alexander Milevski\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw8r%2Fpoint-in-ellipse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fw8r%2Fpoint-in-ellipse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw8r%2Fpoint-in-ellipse/lists"}