Dura2D  v0.1.0
An educational 2D game physics library
Loading...
Searching...
No Matches
d2Node Struct Reference

#include <d2AABBTree.h>

Public Member Functions

 d2Node (void)
 
bool IsLeaf (void) const
 
void SetBranch (d2Node *n0, d2Node *n1)
 
void SetLeaf (d2AABB *data)
 
void UpdateAABB (float margin)
 
d2NodeGetSibling (void) const
 

Public Attributes

d2Nodeparent
 
d2Nodechildren [2] {}
 
bool childrenCrossed {}
 
d2AABB aabb
 
d2AABBdata
 

Constructor & Destructor Documentation

◆ d2Node()

d2Node::d2Node ( void )
inline

Member Function Documentation

◆ GetSibling()

d2Node * d2Node::GetSibling ( void ) const
inline

◆ IsLeaf()

bool d2Node::IsLeaf ( void ) const
inline

◆ SetBranch()

void d2Node::SetBranch ( d2Node * n0,
d2Node * n1 )
inline

◆ SetLeaf()

void d2Node::SetLeaf ( d2AABB * data)
inline

◆ UpdateAABB()

void d2Node::UpdateAABB ( float margin)
inline

Member Data Documentation

◆ aabb

d2AABB d2Node::aabb

◆ children

d2Node* d2Node::children[2] {}

◆ childrenCrossed

bool d2Node::childrenCrossed {}

◆ data

d2AABB* d2Node::data

◆ parent

d2Node* d2Node::parent

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