Castor3D 0.16.0
Multiplatform 3D engine
|
Box container class. More...
#include <BoundingContainer.hpp>
Public Types | |
using | MyPoint = Point< float, Dimension > |
Public Member Functions | |
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 |
Protected Member Functions | |
void | setCenter (MyPoint center) noexcept |
Box container class.
using castor::BoundingContainer< Dimension >::MyPoint = Point< float, Dimension > |
|
default |
|
default |
|
defaultnoexcept |
|
virtualdefaultnoexcept |
|
inlineexplicit |
Constructor from center.
[in] | center | The center. |
|
inline |
Referenced by castor::BoundingBox::getMax(), and castor::BoundingBox::getMin().
|
pure virtual |
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.
|
pure virtual |
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.
|
defaultnoexcept |
|
default |
|
inlineprotectednoexcept |