{"id":15160707,"url":"https://github.com/iteria-llc/utility","last_synced_at":"2026-01-21T01:02:06.262Z","repository":{"id":215087889,"uuid":"730635230","full_name":"Iteria-LLC/utility","owner":"Iteria-LLC","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-04T01:29:19.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T22:16:48.177Z","etag":null,"topics":["unity","unity-editor","unity-package"],"latest_commit_sha":null,"homepage":"https://iteriagames.com","language":"C#","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/Iteria-LLC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-12-12T10:54:26.000Z","updated_at":"2024-12-04T01:29:22.000Z","dependencies_parsed_at":"2024-01-29T17:40:32.208Z","dependency_job_id":null,"html_url":"https://github.com/Iteria-LLC/utility","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"f40e637a30e35587a80d1fd28ea7da9630d7c085"},"previous_names":["iteria-llc/maths","iteria-llc/utility"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iteria-LLC%2Futility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iteria-LLC%2Futility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iteria-LLC%2Futility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iteria-LLC%2Futility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Iteria-LLC","download_url":"https://codeload.github.com/Iteria-LLC/utility/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247724836,"owners_count":20985590,"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":["unity","unity-editor","unity-package"],"created_at":"2024-09-26T23:20:53.386Z","updated_at":"2026-01-21T01:02:06.221Z","avatar_url":"https://github.com/Iteria-LLC.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# utility\n## How to install\nSelect \"Add package from git URL...\" in the Package Manager, and enter this URL:\n```\nhttps://github.com/Iteria-LLC/utility.git\n```\n\n#### Extension Methods\nCollection indexing helpers, for arrays, lists, and dictionaries.\n\n`void IncrementIndex\u003cT\u003e(this ref int index, T[] array, bool wrap = true)`\n`void DecrementIndex\u003cT\u003e(this ref int index, T[] array, bool wrap = true)`\nReturns index, wrapped to the bounds of the given collection.\n```csharp\nvoid NextWeapon()\n{\n    //Scroll through weapons, wrapping back to 0 if necessary.\n    weaponIndex.IncrementIndex(weaponArray);\n}\n```\n\n#### Maths Class\nNamespaced under `Iteria` by default.\nOptionally add scripting define symbol `ITERIA_DENAMESPACE` in player settings to put it in the root namespace for easier access.\n\n#### Square Distance\nUse static function `Square.Distance(a, b)` to perform distance comparisons without calculating square roots.\n```csharp\nif(Square.Distance(transform.position, point) \u003c 5f)\n    Debug.Log(\"Within 5 meters!\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiteria-llc%2Futility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiteria-llc%2Futility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiteria-llc%2Futility/lists"}