![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
#include <BoundingSphere.hpp>


Public Member Functions | |
| CU_API | BoundingSphere ()=default |
| CU_API | BoundingSphere (Point3f const ¢er, float radius) |
| Specified constructor. | |
| CU_API | BoundingSphere (BoundingBox const &box) |
| Constructor from a BoundingBox. | |
| CU_API void | load (Point3f const ¢er, float radius) |
| Reinitialises the sphere box. | |
| CU_API void | load (BoundingBox const &box) |
| Reinitialises the sphere box from a BoundingBox. | |
| CU_API bool | isWithin (Point3f const &point) const override |
| Tests if a vertex is within the container, id est inside it but not on it's limits. | |
| CU_API bool | isOnLimits (Point3f const &point) const override |
| Tests if a vertex is on the limits of this container, and not within. | |
| float | getRadius () const |
Public Member Functions inherited from castor::BoundingContainer< Dimension > | |
| CU_API | BoundingContainer ()=default |
| CU_API | BoundingContainer (BoundingContainer const &)=default |
| CU_API | BoundingContainer (BoundingContainer &&) noexcept=default |
| CU_API BoundingContainer & | operator= (BoundingContainer const &)=default |
| CU_API BoundingContainer & | operator= (BoundingContainer &&) noexcept=default |
| virtual CU_API | ~BoundingContainer () noexcept=default |
| BoundingContainer (MyPoint center) | |
| Constructor from center. | |
| virtual CU_API bool | isWithin (MyPoint const &point) const =0 |
| Tests if a vertex is within the container, id est inside it but not on it's limits. | |
| virtual CU_API bool | isOnLimits (MyPoint const &point) const =0 |
| Tests if a vertex is on the limits of this container, and not within. | |
| MyPoint const & | getCenter () const |
Additional Inherited Members | |
Public Types inherited from castor::BoundingContainer< Dimension > | |
| using | MyPoint = Point< float, Dimension > |
Protected Member Functions inherited from castor::BoundingContainer< Dimension > | |
| void | setCenter (MyPoint center) noexcept |
|
default |
| CU_API castor::BoundingSphere::BoundingSphere | ( | Point3f const & | center, |
| float | radius ) |
Specified constructor.
| [in] | center | The center of the sphere. |
| [in] | radius | The radius of the sphere. |
|
explicit |
Constructor from a BoundingBox.
| [in] | box | The BoundingBox. |
|
inline |
|
override |
Tests if a vertex is on the limits of this container, and not within.
| [in] | point | The vertex to test. |
true if the vertex is on the limits of the container, false if not.
|
override |
Tests if a vertex is within the container, id est inside it but not on it's limits.
| [in] | point | The vertex to test. |
true if the vertex is within the container, false if not. | CU_API void castor::BoundingSphere::load | ( | BoundingBox const & | box | ) |
Reinitialises the sphere box from a BoundingBox.
| [in] | box | The BoundingBox. |
| CU_API void castor::BoundingSphere::load | ( | Point3f const & | center, |
| float | radius ) |
Reinitialises the sphere box.
| [in] | center | The center. |
| [in] | radius | The radius. |