Skip to main content

RTree::RTreeNode

RTree::RTreeNode

Public Functions

Name
RTreeNode(bool leaf =true)
void updateBounds()
bool intersects(const BoundingBox & bbox) const
bool contains(float x, float y) const
float area() const
float enlargementArea(const RTreeEntry< T > & entry) const

Public Attributes

Name
std::vector< RTreeEntry< T > > entries
std::vector< std::unique_ptr< RTreeNode > > children
bool is_leaf
float min_x
float min_y
float max_x
float max_y

Public Functions Documentation

function RTreeNode

inline RTreeNode(
    bool leaf =true
)

function updateBounds

inline void updateBounds()

function intersects

inline bool intersects(
    const BoundingBox & bbox
) const

function contains

inline bool contains(
    float x,
    float y
) const

function area

inline float area() const

function enlargementArea

inline float enlargementArea(
    const RTreeEntry< T > & entry
) const

Public Attributes Documentation

variable entries

std::vector< RTreeEntry< T > > entries;

variable children

std::vector< std::unique_ptr< RTreeNode > > children;

variable is_leaf

bool is_leaf;

variable min_x

float min_x;

variable min_y

float min_y;

variable max_x

float max_x;

variable max_y

float max_y;

Updated on 2026-11-13 at 20:25:40 +0000