{"id":19488867,"url":"https://github.com/dli7319/unity-data-structures","last_synced_at":"2026-04-19T01:03:34.011Z","repository":{"id":98230354,"uuid":"186858638","full_name":"dli7319/unity-data-structures","owner":"dli7319","description":"A collection of data structures written in C# for Unity","archived":false,"fork":false,"pushed_at":"2019-07-17T15:04:24.000Z","size":3,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T08:38:13.203Z","etag":null,"topics":["pm-quadtree","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/dli7319.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}},"created_at":"2019-05-15T15:51:30.000Z","updated_at":"2023-01-01T12:21:51.000Z","dependencies_parsed_at":"2023-03-17T22:00:28.733Z","dependency_job_id":null,"html_url":"https://github.com/dli7319/unity-data-structures","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dli7319%2Funity-data-structures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dli7319%2Funity-data-structures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dli7319%2Funity-data-structures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dli7319%2Funity-data-structures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dli7319","download_url":"https://codeload.github.com/dli7319/unity-data-structures/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240731280,"owners_count":19848503,"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":["pm-quadtree","unity"],"created_at":"2024-11-10T21:05:58.899Z","updated_at":"2026-04-19T01:03:33.938Z","avatar_url":"https://github.com/dli7319.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unity-data-structures\nA collection of data structures for use in Unity.  \nWritten in C#.\n\n## PM Quadtree\n-------------------------------------\n\n### Usage\n* Copy `PMQuadtree.cs` into your project.\n* Use the `PMQuadtree` namespace in the scripts where you need it.\n* Create a class implementing `PMQuadtree.HasPosition` or use the included `Point2D\u003cT\u003e` class for a simple map.\n* Create a new PM Quadtree by calling `var tree = new PMQuadtree\u003cPoint2D\u003cobject\u003e\u003e(minX, minY, maxX, maxY)`\npassing in your boundaries.\n* Insert elements with `tree.Insert(new Point\u003cobject\u003e(1, 1, null))`.\n\n### API\n* `bool Insert(T element)`\n * Currently always returns true.\n* `bool Contains(T element)`\n * Returns true if the element is in the tree.\n* `bool Remove(T element)`  \n * Removes the element if it is in the tree.\n * Does not throw an exception if the element is not in the tree.\n* `bool IsEmpty()`\n* `int size`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdli7319%2Funity-data-structures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdli7319%2Funity-data-structures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdli7319%2Funity-data-structures/lists"}