#include <BoundingSphere.hpp>
◆ BoundingSphere() [1/3]
CU_API castor::BoundingSphere::BoundingSphere |
( |
| ) |
|
|
default |
◆ BoundingSphere() [2/3]
CU_API castor::BoundingSphere::BoundingSphere |
( |
Point3f const & | center, |
|
|
float | radius ) |
Constructeur spécifié.
- Paramètres
-
[in] | center | Le centre de la sphère. |
[in] | radius | Le rayon de la sphère. |
◆ BoundingSphere() [3/3]
Constructeur à partir d'une CubeBox.
- Paramètres
-
◆ getRadius()
float castor::BoundingSphere::getRadius |
( |
| ) |
const |
|
inline |
◆ isOnLimits()
CU_API bool castor::BoundingSphere::isOnLimits |
( |
Point3f const & | point | ) |
const |
|
override |
Teste si un point est sur la limite du conteneur, et pas dedans.
- Paramètres
-
[in] | point | Le point à tester. |
- Renvoie
true
si le point est sur la limite.
◆ isWithin()
CU_API bool castor::BoundingSphere::isWithin |
( |
Point3f const & | point | ) |
const |
|
override |
Teste si un point est contenu dans le conteneur (mais pas à la limite).
- Paramètres
-
[in] | point | Le point à tester. |
- Renvoie
true
si le point est dans le conteneur.
◆ load() [1/2]
Réinitialise à partir d'une CubeBox.
- Paramètres
-
◆ load() [2/2]
CU_API void castor::BoundingSphere::load |
( |
Point3f const & | center, |
|
|
float | radius ) |
Réinitialise la sphere box.
- Paramètres
-
[in] | center | Le centre. |
[in] | radius | Le rayon. |
La documentation de cette classe a été générée à partir du fichier suivant :