Skip to content

Instantly share code, notes, and snippets.

View bburrough's full-sized avatar
💪

Bob Burrough bburrough

💪
View GitHub Profile
@ditzel
ditzel / KdTree.cs
Last active April 29, 2024 21:38
k-d Tree
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Profiling;
public class KdTree<T> : IEnumerable<T>, IEnumerable where T : Component
{
protected KdNode _root;
protected KdNode _last;