FabGL
ESP32 VGA Controller and Graphics Library
fabgl::QuadTree Class Reference

#include <collisiondetector.h>

Public Member Functions

 QuadTree (CollisionDetector *collisionDetector, QuadTree *parent, QuadTreeQuadrant quadrant, int x, int y, int width, int height)
 
void insert (QuadTreeObject *object)
 
QuadTreeObjectdetectCollision (QuadTreeObject *object, CollisionDetectionCallback callbackFunc=NULL, void *callbackObj=NULL)
 
bool isEmpty ()
 
void detachFromParent ()
 

Static Public Member Functions

static void remove (QuadTreeObject *object)
 
static void update (QuadTreeObject *object)
 

Constructor & Destructor Documentation

◆ QuadTree()

fabgl::QuadTree::QuadTree ( CollisionDetector collisionDetector,
QuadTree parent,
QuadTreeQuadrant  quadrant,
int  x,
int  y,
int  width,
int  height 
)

Member Function Documentation

◆ detachFromParent()

void fabgl::QuadTree::detachFromParent ( )

◆ detectCollision()

QuadTreeObject * fabgl::QuadTree::detectCollision ( QuadTreeObject object,
CollisionDetectionCallback  callbackFunc = NULL,
void *  callbackObj = NULL 
)

◆ insert()

void fabgl::QuadTree::insert ( QuadTreeObject object)

◆ isEmpty()

bool fabgl::QuadTree::isEmpty ( )

◆ remove()

void fabgl::QuadTree::remove ( QuadTreeObject object)
static

◆ update()

void fabgl::QuadTree::update ( QuadTreeObject object)
static

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