{"id":18299893,"url":"https://github.com/gamestdio/mathf","last_synced_at":"2025-04-05T13:35:24.025Z","repository":{"id":94804155,"uuid":"99494821","full_name":"gamestdio/mathf","owner":"gamestdio","description":"A collection of common math functions for JavaScript / TypeScript","archived":false,"fork":false,"pushed_at":"2017-08-09T13:18:13.000Z","size":117,"stargazers_count":23,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T15:05:33.698Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://gamestd.io/mathf/","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/gamestdio.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}},"created_at":"2017-08-06T15:14:27.000Z","updated_at":"2024-07-29T18:43:27.000Z","dependencies_parsed_at":"2024-01-23T17:41:27.360Z","dependency_job_id":"2d368c5b-ad88-4a75-9f0d-d4bb8afd9ddf","html_url":"https://github.com/gamestdio/mathf","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"b730944e8172c0fc9b2aeffe05cd8657dc0a9534"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamestdio%2Fmathf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamestdio%2Fmathf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamestdio%2Fmathf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamestdio%2Fmathf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gamestdio","download_url":"https://codeload.github.com/gamestdio/mathf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247342650,"owners_count":20923636,"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-11-05T15:10:39.204Z","updated_at":"2025-04-05T13:35:23.721Z","avatar_url":"https://github.com/gamestdio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @gamestdio/mathf\r\n\r\nA collection of common math functions for JavaScript/TypeScript.\r\n\r\n## Installation\r\n\r\n```\r\nnpm install @gamestdio/mathf\r\n```\r\n\r\n## Usage\r\n\r\n```typescript\r\nimport { lerpAngle, rad2Deg, deg2Rad } from \"@gamestdio/mathf\";\r\n\r\nlet targetAngle = Math.PI * rad2Deg;\r\nsprite.rotation = lerpAngle(sprite.rotation * rad2Deg, targetAngle, 0.1) * deg2Rad;\r\n```\r\n\r\n## References\r\n- https://github.com/likerRr/mathf-js\r\n- https://docs.unity3d.com/ScriptReference/Mathf.html\r\n\r\n## License\r\n\r\nMIT\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamestdio%2Fmathf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamestdio%2Fmathf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamestdio%2Fmathf/lists"}