Rehti MMORPG  1.0.0
Rehti MMORPG is a free and open source MMORPG game.
AABB Struct Reference

Axis Aligned Bounding Box data structure. More...

#include <AABB.hpp>

Collaboration diagram for AABB:
Collaboration graph

Public Member Functions

 AABB (glm::vec3 min=glm::vec3(0.f), glm::vec3 max=glm::vec3(0.f), std::unique_ptr< AABB > pLeft=nullptr, std::unique_ptr< AABB > pRight=nullptr)
 
 AABB (AABB &other)
 
AABBoperator= (AABB &other)
 
bool isLeaf () const
 
glm::vec3 getCenter () const
 

Public Attributes

glm::vec3 min
 
glm::vec3 max
 
std::unique_ptr< AABBpLeft
 
std::unique_ptr< AABBpRight
 

Detailed Description

Axis Aligned Bounding Box data structure.

Constructor & Destructor Documentation

◆ AABB() [1/2]

AABB::AABB ( glm::vec3  min = glm::vec3(0.f),
glm::vec3  max = glm::vec3(0.f),
std::unique_ptr< AABB pLeft = nullptr,
std::unique_ptr< AABB pRight = nullptr 
)

◆ AABB() [2/2]

AABB::AABB ( AABB other)

Member Function Documentation

◆ getCenter()

glm::vec3 AABB::getCenter ( ) const

◆ isLeaf()

bool AABB::isLeaf ( ) const
Here is the caller graph for this function:

◆ operator=()

AABB & AABB::operator= ( AABB other)

Member Data Documentation

◆ max

glm::vec3 AABB::max

◆ min

glm::vec3 AABB::min

◆ pLeft

std::unique_ptr<AABB> AABB::pLeft

◆ pRight

std::unique_ptr<AABB> AABB::pRight

The documentation for this struct was generated from the following files: