Class PointOctree<T>
- Namespace
- AwesomeTechnologies.External.Octree
- Assembly
- Assembly-CSharp.dll
public class PointOctree<T> where T : class
Type Parameters
T
- Inheritance
-
PointOctree<T>
- Inherited Members
-
- Extension Methods
-
Constructors
PointOctree(float, Vector3, float)
public PointOctree(float initialWorldSize, Vector3 initialWorldPos, float minNodeSize)
Parameters
initialWorldSize float
initialWorldPos Vector3
minNodeSize float
Properties
Count
public int Count { get; }
Property Value
- int
Methods
Add(T, Vector3)
public void Add(T obj, Vector3 objPos)
Parameters
obj T
objPos Vector3
DrawAllBounds()
public void DrawAllBounds()
DrawAllObjects()
public void DrawAllObjects()
GetAll()
public ICollection<T> GetAll()
Returns
- ICollection<T>
GetNearby(Ray, float)
public T[] GetNearby(Ray ray, float maxDistance)
Parameters
ray Ray
maxDistance float
Returns
- T[]
GetNearby(Vector3, float)
public T[] GetNearby(Vector3 position, float maxDistance)
Parameters
position Vector3
maxDistance float
Returns
- T[]
GetNearbyNonAlloc(Ray, float, List<T>)
public bool GetNearbyNonAlloc(Ray ray, float maxDistance, List<T> nearBy)
Parameters
ray Ray
maxDistance float
nearBy List<T>
Returns
- bool
Remove(T)
public bool Remove(T obj)
Parameters
obj T
Returns
- bool
Remove(T, Vector3)
public bool Remove(T obj, Vector3 objPos)
Parameters
obj T
objPos Vector3
Returns
- bool