Skip to content

High Performance Quad Tree Implementations for C# (Point, Rect and PointInv. GC Optimized For Unity.)

License

Notifications You must be signed in to change notification settings

0right/QuadTrees-Unity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuadTrees

High Performance Quad Tree Implementations for C# In Unity (Point, Rect and PointInv). Zero GC optimized.

Alt text

Example

Rect

QuadTreeRectF<QTreeObject> qtree = new QuadTreeRectF<QTreeObject>(-100000, 10000, 10000000, 1000000);
qtree.AddRange(new List<QTreeObject>
{
	new QTreeObject(new RectangleF(10,10,10,10)), // Expected result
	new QTreeObject(new RectangleF(-1000,1000,10,10))
});

var list = new List<QTreeObject>();
qtree.GetObjects(new RectangleF(9, 9, 20, 20), list);

Performace

License

Since version v1.0.3 licensed under the Apache License

About

High Performance Quad Tree Implementations for C# (Point, Rect and PointInv. GC Optimized For Unity.)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%