Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/TQuadTree
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GetElements
(
const FBox2D& Box, |
Given a 2D box, returns an array of elements within the box. | GenericQuadTree.h | |
void GetElements
(
const FBox2D& Box, |
Given a 2D box, iterates over intersecting elements and execute the callback for each. | GenericQuadTree.h |
GetElements(const FBox2D &, TArray< ElementType, ElementAllocatorType > &)
Description
Given a 2D box, returns an array of elements within the box. There will not be any duplicates in the list.
| Name | GetElements |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/GenericQuadTree.h |
| Include Path | #include "GenericQuadTree.h" |
template<typename ElementAllocatorType>
void GetElements
(
const FBox2D & Box,
TArray < ElementType, ElementAllocatorType > & ElementsOut
) const
GetElements(const FBox2D &, CallbackType &&)
Description
Given a 2D box, iterates over intersecting elements and execute the callback for each. If Callback returns true, it will continue processing, if it returns false, iteration will end.
| Name | GetElements |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/GenericQuadTree.h |
| Include Path | #include "GenericQuadTree.h" |
template<typename CallbackType>
void GetElements
(
const FBox2D & Box,
CallbackType && Callback
) const