SpatialTreeNode

Description

struct Tinman.Terrain.Util.SpatialTreeNode<TBounds val>

Represents a node in a spatial tree.

Public / Methods

Child


public method Child → (1)

index in : int32

[0..SpatialTreeNode.Count-1]
The child index.

returns → SpatialTreeNode<TBounds>

The child node. Will be invalid if the child does not exist (see IsInvalid).

Returns a child of this node.

Public / Attributes

Bounds


public readonly attribute Bounds → (TBounds)

The bounding-box of the spatial entities in this tree node, including all descendants.

Count


public attribute Count → (get)

value : int32

[>0]
The maximum child count.

The maximum number of children per tree node.

Entities


public attribute Entities → (get)

value : int32

[>=0]
The number of spatial tree nodes. Will be 0 iff empty.

The number of spatial entities in the tree node.

Is​Empty


public attribute IsEmpty → (get)

value : bool

true if this tree node does not contain any geometry, false if not.

Is this tree node empty?

Is​Invalid


public attribute IsInvalid → (get)

value : bool

true if this value is invalid, false if not.

Is this node invalid?