#include <types.hpp>
|
| | AABB ()=default |
| |
| | AABB (const glm::vec2 &lb, const glm::vec2 &ub) |
| | constructor for AABB-object
|
| |
| bool | collidesWith (const AABB &other) const |
| | checks the collision between two AABB-objects
|
| |
|
| glm::vec2 | lowerBound |
| | point with the smallest coords
|
| |
| glm::vec2 | upperBound |
| | point with the biggest coords
|
| |
◆ AABB() [1/2]
◆ AABB() [2/2]
| phys2d::AABB::AABB |
( |
const glm::vec2 & |
lb, |
|
|
const glm::vec2 & |
ub |
|
) |
| |
constructor for AABB-object
- Parameters
-
| lb | lower bound, point with the smallest coords |
| ub | upper bound, point with the biggest coords |
- Return values
-
◆ collidesWith()
| bool phys2d::AABB::collidesWith |
( |
const AABB & |
other | ) |
const |
checks the collision between two AABB-objects
- Parameters
-
| other | AABB-object to check collision with |
- Return values
-
| true | if the objects collide and false else |
◆ lowerBound
| glm::vec2 phys2d::AABB::lowerBound |
point with the smallest coords
◆ upperBound
| glm::vec2 phys2d::AABB::upperBound |
point with the biggest coords
The documentation for this struct was generated from the following file:
- /home/runner/work/Cheese-Engine/Cheese-Engine/inc/types.hpp