Twilight Princess
Remastered version of the GameCube game
Loading...
Searching...
No Matches
KclLibrary.OctreeNodeBase< T > Class Template Referenceabstract

Represents the base for an octree node. More...

+ Inheritance diagram for KclLibrary.OctreeNodeBase< T >:
+ Collaboration diagram for KclLibrary.OctreeNodeBase< T >:

Public Member Functions

IEnumerator< T > GetEnumerator ()
 Returns an enumerator that iterates through the collection.
 

Static Public Attributes

const int ChildCount = 8
 The number of children of an octree node.
 

Protected Member Functions

 OctreeNodeBase (uint key)
 Initializes a new instance of the OctreeNodeBase<T> class with the given octree node key .
 

Static Protected Attributes

const uint _flagMask = 0b11000000_00000000_00000000_00000000
 The bits storing the flags of this node.
 

Properties

uint Key [get, set]
 Gets the octree key used to reference this node.
 
T[] Children [get, set]
 Gets the eight children of this node.
 

Private Member Functions

IEnumerator IEnumerable. GetEnumerator ()
 Returns an enumerator that iterates through a collection.
 

Detailed Description

Represents the base for an octree node.

Template Parameters
TThe type of the octree node.
Type Constraints
T :OctreeNodeBase<T> 

Constructor & Destructor Documentation

◆ OctreeNodeBase()

KclLibrary.OctreeNodeBase< T >.OctreeNodeBase ( uint key)
protected

Initializes a new instance of the OctreeNodeBase<T> class with the given octree node key .

Parameters
keyThe octree node key with which the node can be referenced.

Member Function Documentation

◆ GetEnumerator() [1/2]

IEnumerator< T > KclLibrary.OctreeNodeBase< T >.GetEnumerator ( )

Returns an enumerator that iterates through the collection.

Returns
An enumerator that can be used to iterate through the collection.

◆ GetEnumerator() [2/2]

IEnumerator IEnumerable. KclLibrary.OctreeNodeBase< T >.GetEnumerator ( )
private

Returns an enumerator that iterates through a collection.

Returns
An IEnumerator object that can be used to iterate through the collection.

Member Data Documentation

◆ _flagMask

const uint KclLibrary.OctreeNodeBase< T >._flagMask = 0b11000000_00000000_00000000_00000000
staticprotected

The bits storing the flags of this node.

◆ ChildCount

const int KclLibrary.OctreeNodeBase< T >.ChildCount = 8
static

The number of children of an octree node.

Property Documentation

◆ Children

T [] KclLibrary.OctreeNodeBase< T >.Children
getset

Gets the eight children of this node.

◆ Key

uint KclLibrary.OctreeNodeBase< T >.Key
getset

Gets the octree key used to reference this node.


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