{"id":17937738,"url":"https://github.com/jgtools/jgmath","last_synced_at":"2026-05-17T17:43:22.742Z","repository":{"id":64461056,"uuid":"576016379","full_name":"JGTools/JGMath","owner":"JGTools","description":"Math utils","archived":false,"fork":false,"pushed_at":"2024-11-25T02:34:58.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-16T05:09:43.833Z","etag":null,"topics":["2d-math","game-math","game-math-library","javascript","jgtools","math","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/JGTools.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-08T20:20:42.000Z","updated_at":"2024-11-25T02:35:01.000Z","dependencies_parsed_at":"2024-10-28T23:07:18.752Z","dependency_job_id":"3f508dd1-94e2-4fa6-90b5-0c88ccd5b526","html_url":"https://github.com/JGTools/JGMath","commit_stats":{"total_commits":8,"total_committers":3,"mean_commits":"2.6666666666666665","dds":0.375,"last_synced_commit":"19c03b5b25d0d5d85321c5b834ffebf1ce65159a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JGTools/JGMath","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JGTools%2FJGMath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JGTools%2FJGMath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JGTools%2FJGMath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JGTools%2FJGMath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JGTools","download_url":"https://codeload.github.com/JGTools/JGMath/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JGTools%2FJGMath/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266524998,"owners_count":23942853,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-math","game-math","game-math-library","javascript","jgtools","math","typescript"],"created_at":"2024-10-28T23:07:16.428Z","updated_at":"2026-05-17T17:43:22.673Z","avatar_url":"https://github.com/JGTools.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JGMath\n\n[![npm](https://img.shields.io/npm/v/@jgtools/jgmath)](https://www.npmjs.com/package/@jgtools/jgmath)\n[![npm](https://img.shields.io/npm/dm/@jgtools/jgmath)](https://www.npmjs.com/package/@jgtools/jgmath)\n[![GitHub](https://img.shields.io/github/license/jgtools/jgmath)](https://github.com/git/git-scm.com/blob/main/MIT-LICENSE.txt)\n\nMath utils\n\n## Installation\n\n### Using npm\n\n```bash\nnpm i @jgtools/jgmath\n```\n\n```javascript\n// import all functions using a namespace\nimport * as JGMath from \"@jgtools/jgmath\";\n// or import functions individually\nimport { getAngle } from \"@jgtools/jgmath\";\n// ...\n```\n\n### Using cdn\n\n```html\n\u003cscript type=\"module\"\u003e\n    // import all functions using a namespace\n    import * as JGMath from \"https://cdn.jsdelivr.net/npm/@jgtools/jgmath@1.0.7/dist/index.min.js\";\n    // or import functions individually\n    import { getAngle } from \"https://cdn.jsdelivr.net/npm/@jgtools/jgmath@1.0.7/dist/index.min.js\";\n    // ...\n\u003c/script\u003e\n```\n\n## Usage\n\n```javascript\nimport { getAngle } from \"@jgtools/jgmath\";\n\nconst p1 = { x: 1, y: 2 };\nconst p2 = { x: 5, y: 5 };\nconst a = getAngle(p1, p2);\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgtools%2Fjgmath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgtools%2Fjgmath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgtools%2Fjgmath/lists"}