Quadtree/QuadtreeVertex.cs

23 lines
640 B
C#

namespace Quadtree
{
internal struct QuadtreeVertex
{
/// <summary>
/// The index of the first child vertex of this vertex if it is a branch, or the index of its first item if it
/// is a leaf.
/// </summary>
public int FirstChildIndex;
/// <summary>
/// The number of child items of this vertex if it is a leaf, or -1 if it is a branch.
/// </summary>
public int ChildCount;
public QuadtreeVertex(int firstChildIndex, int childCount)
{
FirstChildIndex = firstChildIndex;
ChildCount = childCount;
}
}
}