OpenBarnyard
 
Loading...
Searching...
No Matches
CellSphereTreeBranchNode Struct Reference

#include <AWorld.h>

Public Member Functions

TBOOL IsLeaf () const
 
CellSphereTreeLeafNodeGetLeafNode ()
 
CellSphereTreeBranchNodeGetSubNode ()
 
CellSphereTreeBranchNodeGetPrevNode ()
 

Public Attributes

Toshi::TSphere m_BoundingSphere
 
CellSphereTreeBranchNodem_pRight
 

Detailed Description

Definition at line 102 of file AWorld.h.

Member Function Documentation

◆ GetLeafNode()

CellSphereTreeLeafNode * CellSphereTreeBranchNode::GetLeafNode ( )
inline

Definition at line 109 of file AWorld.h.

110 {
111 TASSERT( IsLeaf() );
112 return (CellSphereTreeLeafNode*)( this + 1 );
113 }
#define TASSERT(X,...)
Definition Defines.h:138
TBOOL IsLeaf() const
Definition AWorld.h:107

◆ GetPrevNode()

CellSphereTreeBranchNode * CellSphereTreeBranchNode::GetPrevNode ( )
inline

Definition at line 121 of file AWorld.h.

122 {
123 return (CellSphereTreeBranchNode*)( this - 1 );
124 }

◆ GetSubNode()

CellSphereTreeBranchNode * CellSphereTreeBranchNode::GetSubNode ( )
inline

Definition at line 115 of file AWorld.h.

116 {
117 TASSERT( !IsLeaf() );
118 return (CellSphereTreeBranchNode*)( this + 1 );
119 }

◆ IsLeaf()

TBOOL CellSphereTreeBranchNode::IsLeaf ( ) const
inline

Definition at line 107 of file AWorld.h.

107{ return m_pRight == TNULL; }
#define TNULL
Definition Typedefs.h:23
CellSphereTreeBranchNode * m_pRight
Definition AWorld.h:105

Member Data Documentation

◆ m_BoundingSphere

Toshi::TSphere CellSphereTreeBranchNode::m_BoundingSphere

Definition at line 104 of file AWorld.h.

◆ m_pRight

CellSphereTreeBranchNode* CellSphereTreeBranchNode::m_pRight

Definition at line 105 of file AWorld.h.


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