class
TLooseOctree
- Module
- Math
- Header
#include "Math/LooseOctree.h"- Namespace
Mowo- Template
template<typename T>
Properties
| Type | Name | Description |
|---|---|---|
static constexpr uint32_t | InvalidHandle | Default UINT32_MAX. |
Constructors
| Signature | Name | Description |
|---|---|---|
TLooseOctree(const Vec3& worldCenter, float worldHalfExtent, uint32_t maxDepth =… | TLooseOctree |
Public functions
| Returns | Name | Description |
|---|---|---|
uint32_t | Insert | |
void | Remove | |
void | Update | |
void | Query | |
void | QueryBox | |
void | QueryRay | |
size_t | Size | |
void | Clear | |
bool | RayIntersectsBox |
Function details
TLooseOctree
C++
TLooseOctree(const Vec3& worldCenter, float worldHalfExtent, uint32_t maxDepth = 8) : m_worldCenter(worldCenter), m_worldHalfExtent(worldHalfExtent), m_maxDepth(maxDepth)Insert
C++
uint32_t Insert(const T& value, const FBox& bounds)Remove
C++
void Remove(uint32_t handle)Update
C++
void Update(uint32_t handle, const FBox& bounds)Query
C++
template<typename NodeTest, typename Visitor> void Query(NodeTest&& test, Visitor&& visit) constQueryBox
C++
template<typename Visitor> void QueryBox(const FBox& box, Visitor&& visit) constQueryRay
C++
template<typename Visitor> void QueryRay(const Vec3& origin, const Vec3& dir, float maxDist, Visitor&& visit) constSize
C++
size_t Size() constClear
C++
void Clear()RayIntersectsBox
C++
static bool RayIntersectsBox(const Vec3& origin, const Vec3& dir, float maxDist, const FBox& box)Generated from Math/LooseOctree.h via math.json · Nov 4, 2026Version 1.0.0