#include <glm/vec3.hpp>
#include <memory>
#include <string>
#include <vector>
Go to the source code of this file.
|
| glm::vec3 | minVector (const glm::vec3 &a, const glm::vec3 &b) |
| | Constructs a minimum vector from two vectors. More...
|
| |
| glm::vec3 | maxVector (const glm::vec3 &a, const glm::vec3 &b) |
| | Constructs a maximum vector from two vectors. More...
|
| |
| std::vector< std::unique_ptr< AABB > > | createMapAABB (const MapAABBData &data) |
| | Creates a list of AABBs trees for each area in the areaMatrix. More...
|
| |
| std::unique_ptr< AABB > | createAreaAABB (AABB *aabb, const int x, const int y, const int xsize, const int ysize, const MapAABBData &input, bool burgerFlip) |
| | Recursively creates an AABB tree for a single area. More...
|
| |
◆ createAreaAABB()
| std::unique_ptr<AABB> createAreaAABB |
( |
AABB * |
aabb, |
|
|
const int |
x, |
|
|
const int |
y, |
|
|
const int |
xsize, |
|
|
const int |
ysize, |
|
|
const MapAABBData & |
input, |
|
|
bool |
burgerFlip |
|
) |
| |
Recursively creates an AABB tree for a single area.
- Parameters
-
| aabb | The parent AABB. If this is the root AABB, then this is nullptr. |
| x | The min x coordinate of the area. |
| y | The min y coordinate of the area. |
| xsize | The width of the area. |
| ysize | The height of the area. |
| input | The input data for the AABB tree. |
| burgerFlip | Used to change the direction during recursion. |
- Returns
- The root AABB of the area
◆ createMapAABB()
| std::vector<std::unique_ptr<AABB> > createMapAABB |
( |
const MapAABBData & |
data | ) |
|
Creates a list of AABBs trees for each area in the areaMatrix.
◆ maxVector()
| glm::vec3 maxVector |
( |
const glm::vec3 & |
a, |
|
|
const glm::vec3 & |
b |
|
) |
| |
Constructs a maximum vector from two vectors.
- Parameters
-
- Returns
- maximum vector
◆ minVector()
| glm::vec3 minVector |
( |
const glm::vec3 & |
a, |
|
|
const glm::vec3 & |
b |
|
) |
| |
Constructs a minimum vector from two vectors.
- Parameters
-
- Returns
- minimum vector