Table of Contents

Class PointOctreeNode<T>

Namespace
Global
Assembly
Assembly-CSharp.dll
public class PointOctreeNode<T> where T : class

Type Parameters

T
Inheritance
PointOctreeNode<T>
Inherited Members

Constructors

PointOctreeNode(float, float, Vector3)

public PointOctreeNode(float baseLengthVal, float minSizeVal, Vector3 centerVal)

Parameters

baseLengthVal float
minSizeVal float
centerVal Vector3

Properties

Center

public Vector3 Center { get; }

Property Value

Vector3

SideLength

public float SideLength { get; }

Property Value

float

Methods

Add(T, Vector3)

public bool Add(T obj, Vector3 objPos)

Parameters

obj T
objPos Vector3

Returns

bool

DrawAllBounds(float)

public void DrawAllBounds(float depth = 0)

Parameters

depth float

DrawAllObjects()

public void DrawAllObjects()

GetAll(List<T>)

public void GetAll(List<T> result)

Parameters

result List<T>

GetClosest(ref Vector3, ref float, ref float, ref T)

public bool GetClosest(ref Vector3 position, ref float maxDistance, ref float currentMinDistance, ref T currentClosest)

Parameters

position Vector3
maxDistance float
currentMinDistance float
currentClosest T

Returns

bool

GetNearby(ref Ray, ref float, List<T>)

public void GetNearby(ref Ray ray, ref float maxDistance, List<T> result)

Parameters

ray Ray
maxDistance float
result List<T>

GetNearby(ref Vector3, ref float, List<T>)

public void GetNearby(ref Vector3 position, ref float maxDistance, List<T> result)

Parameters

position Vector3
maxDistance float
result List<T>

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

SetChildren(PointOctreeNode<T>[])

public void SetChildren(PointOctreeNode<T>[] childOctrees)

Parameters

childOctrees PointOctreeNode<T>[]

ShrinkIfPossible(float)

public PointOctreeNode<T> ShrinkIfPossible(float minLength)

Parameters

minLength float

Returns

PointOctreeNode<T>

SqrDistanceToRay(Ray, Vector3)

public static float SqrDistanceToRay(Ray ray, Vector3 point)

Parameters

ray Ray
point Vector3

Returns

float