{"id":18121887,"url":"https://github.com/hermesiss/unity-mathf-extensions","last_synced_at":"2026-05-17T00:11:07.133Z","repository":{"id":133915520,"uuid":"272166800","full_name":"Hermesiss/unity-mathf-extensions","owner":"Hermesiss","description":"Mathf extensions for more RX-ish style","archived":false,"fork":false,"pushed_at":"2020-07-04T09:37:10.000Z","size":62,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T01:23:47.973Z","etag":null,"topics":["extension","math","mathf-unity3d","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hermesiss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2020-06-14T09:02:23.000Z","updated_at":"2023-07-11T21:36:50.000Z","dependencies_parsed_at":"2023-03-22T15:03:23.959Z","dependency_job_id":null,"html_url":"https://github.com/Hermesiss/unity-mathf-extensions","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Hermesiss/unity-mathf-extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermesiss%2Funity-mathf-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermesiss%2Funity-mathf-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermesiss%2Funity-mathf-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermesiss%2Funity-mathf-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hermesiss","download_url":"https://codeload.github.com/Hermesiss/unity-mathf-extensions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermesiss%2Funity-mathf-extensions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278778959,"owners_count":26044256,"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-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["extension","math","mathf-unity3d","unity"],"created_at":"2024-11-01T06:15:47.022Z","updated_at":"2025-10-07T12:44:33.562Z","avatar_url":"https://github.com/Hermesiss.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity Mathf Extensions\r\n\r\n## What is this?\r\n\r\nUnity [Mathf](https://docs.unity3d.com/ScriptReference/Mathf.html) extensions for more RX-ish style so you can write\r\n\r\n```csharp\r\nvar result = a * b * .5f * ((a / b * a2.Tan()).Atan() - (a / b * a1.Tan()).Atan());\r\n```\r\n\r\ninstead of \r\n```csharp\r\nvar result = a * b * .5f * (Mathf.Atan(a / b * Mathf.Tan(a2)) - Mathf.Atan(a / b * Mathf.Tan(a1)));\r\n```\r\n\r\n## Features\r\n\r\n* All `UnityEngine.Mathf` methods\r\n* Standard [operators and expressions](https://docs.microsoft.com/en-gb/dotnet/csharp/language-reference/operators/)\r\n  * Arithmetical `Add`, `Sub`, `Mul`, `Div`, `Frac`\r\n  * Logical `Neg`, `And`, `Or`, `Xor`, `AndCond`, `OrCond`\r\n  * Bitwise `BitComplement`, `BitLeftShift`, `BitRightShift`, `BitAnd`, `BitOr`, `BitXor`\r\n  * Comparison `Less`, `LessEqual`, `Great`, `GreatEqual`\r\n\r\n## Installation\r\n\r\nYou have several options\r\n\r\n### From registry\r\n\r\nFirst, you need to add a scoped registry to `Packages/manifest.json`: \r\n\r\n```json\r\n\"scopedRegistries\": [\r\n    {\r\n      \"name\": \"trismegistus\",\r\n      \"url\": \"http://upm.trismegistus.tech:4873/\",\r\n      \"scopes\": [\r\n        \"trismegistus.unity\"\r\n      ]\r\n    }\r\n]\r\n```\r\n\r\nThen open `Window/Package manager`, `All packages`, and install `Trismegistus Mathf Extensions`\r\n\r\n### From git url\r\n\r\n1. Open `Window/Package manager`\r\n2. `+`, `Add from git URL`\r\n3. Enter `https://github.com/Hermesiss/unity-mathf-extensions.git?path=/Packages/trismegistus.unity.mathf-extensions`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermesiss%2Funity-mathf-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhermesiss%2Funity-mathf-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermesiss%2Funity-mathf-extensions/lists"}