Class QuadTree

Class Documentation

class game::environment::QuadTree

Public Functions

QuadTree(int64_t x, int64_t y, int64_t width, int64_t height, uint16_t capacity = 20)
~QuadTree()
bool Insert(const std::shared_ptr<Object> &object)
bool Remove(const std::shared_ptr<Object> &object)
void QueryObjectsAround(std::vector<std::shared_ptr<Object>> &out, int64_t x, int64_t y, int32_t radius)
void Print()