Dungeon Architect  17.0.0
SharpNav.Collections.BVTree Class Reference

A tree of bounding volumes. More...

Classes

struct  Node
 The data stored in a bounding volume node. More...
 

Public Member Functions

 BVTree (PolyVertex[] verts, PolyMesh.Polygon[] polys, int nvp, float cellSize, float cellHeight)
 Initializes a new instance of the BVTree class. More...
 

Properties

int Count [get]
 Gets the number of nodes in the tree. More...
 
Node this[int index] [get]
 Gets the node at a specified index. More...
 

Detailed Description

A tree of bounding volumes.

Definition at line 20 of file BVTree.cs.

Constructor & Destructor Documentation

◆ BVTree()

SharpNav.Collections.BVTree.BVTree ( PolyVertex[]  verts,
PolyMesh.Polygon[]  polys,
int  nvp,
float  cellSize,
float  cellHeight 
)

Initializes a new instance of the BVTree class.

Parameters
vertsA set of vertices.
polysA set of polygons composed of the vertices in verts.
nvpThe maximum number of vertices per polygon.
cellSizeThe size of a cell.
cellHeightThe height of a cell.

Definition at line 39 of file BVTree.cs.

Property Documentation

◆ Count

int SharpNav.Collections.BVTree.Count
get

Gets the number of nodes in the tree.

Definition at line 75 of file BVTree.cs.

◆ this[int index]

Node SharpNav.Collections.BVTree.this[int index]
get

Gets the node at a specified index.

Parameters
indexThe index.
Returns
The node at the index.

Definition at line 88 of file BVTree.cs.


The documentation for this class was generated from the following file: