Bounding box type.
More...
#include <BoundingBox.hpp>
|
void | set (const ::BoundingBox &box) |
|
void | set (const ::Vector3 &_min, const ::Vector3 &_max) |
|
Bounding box type.
Definition at line 12 of file BoundingBox.hpp.
◆ BoundingBox() [1/4]
raylib::BoundingBox::BoundingBox |
( |
const ::BoundingBox & |
box | ) |
|
|
inline |
◆ BoundingBox() [2/4]
raylib::BoundingBox::BoundingBox |
( |
const ::Mesh & |
mesh | ) |
|
|
inline |
◆ BoundingBox() [3/4]
raylib::BoundingBox::BoundingBox |
( |
::Vector3 |
minMax = ::Vector3{0.0f, 0.0f, 0.0f} | ) |
|
|
inline |
◆ BoundingBox() [4/4]
raylib::BoundingBox::BoundingBox |
( |
::Vector3 |
min, |
|
|
::Vector3 |
max |
|
) |
| |
|
inline |
◆ CheckCollision() [1/3]
bool raylib::BoundingBox::CheckCollision |
( |
::Vector3 |
center, |
|
|
float |
radius |
|
) |
| const |
|
inline |
Detect collision between box and sphere.
Definition at line 56 of file BoundingBox.hpp.
◆ CheckCollision() [2/3]
bool raylib::BoundingBox::CheckCollision |
( |
const ::BoundingBox & |
box2 | ) |
const |
|
inline |
◆ CheckCollision() [3/3]
bool raylib::BoundingBox::CheckCollision |
( |
const ::Ray & |
ray | ) |
const |
|
inline |
Detect collision between ray and bounding box.
Definition at line 63 of file BoundingBox.hpp.
◆ Draw()
void raylib::BoundingBox::Draw |
( |
::Color |
color = {255, 255, 255, 255} | ) |
const |
|
inline |
◆ GetCollision()
RayCollision raylib::BoundingBox::GetCollision |
( |
const ::Ray & |
ray | ) |
const |
|
inline |
Get collision information between ray and bounding box.
Definition at line 70 of file BoundingBox.hpp.
◆ GetMax()
::Vector3 raylib::BoundingBox::GetMax |
( |
| ) |
const |
|
inline |
Retrieves the max value for the object.
- Returns
- The max value of the object.
Definition at line 32 of file BoundingBox.hpp.
◆ GetMin()
::Vector3 raylib::BoundingBox::GetMin |
( |
| ) |
const |
|
inline |
Retrieves the min value for the object.
- Returns
- The min value of the object.
Definition at line 31 of file BoundingBox.hpp.
◆ operator=()
BoundingBox & raylib::BoundingBox::operator= |
( |
const ::BoundingBox & |
box | ) |
|
|
inline |
◆ set() [1/2]
void raylib::BoundingBox::set |
( |
const ::BoundingBox & |
box | ) |
|
|
inlineprotected |
◆ set() [2/2]
void raylib::BoundingBox::set |
( |
const ::Vector3 & |
_min, |
|
|
const ::Vector3 & |
_max |
|
) |
| |
|
inlineprotected |
◆ SetMax()
void raylib::BoundingBox::SetMax |
( |
::Vector3 |
value | ) |
|
|
inline |
Sets the max value for the object.
- Parameters
-
value | The value of which to set max to. |
Definition at line 32 of file BoundingBox.hpp.
◆ SetMin()
void raylib::BoundingBox::SetMin |
( |
::Vector3 |
value | ) |
|
|
inline |
Sets the min value for the object.
- Parameters
-
value | The value of which to set min to. |
Definition at line 31 of file BoundingBox.hpp.