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 spatial bounds of this tree node.

Count


public attribute Count → (get)

value : int32

[>0]
The maximum child count.

The maximum number of children per tree node.

IsEmpty


public attribute IsEmpty → (get)

value : bool

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

Is this tree node empty?

IsInvalid


public attribute IsInvalid → (get)

value : bool

true if this value is invalid, false if not.

Is this node invalid?