jGL
|
A bounding box template. More...
#include <primitive.h>
Public Member Functions | |
BoundingBox () | |
BoundingBox (const std::array< glm::tvec2< T >, 4 > &v) | |
bool | in (T x, T y) |
If the point (x, y) is in the box. | |
Public Attributes | |
std::array< glm::tvec2< T >, 4 > | vertices |
Vertices of bounding box. | |
A bounding box template.
|
inline |
|
inline |
|
inline |
If the point (x, y) is in the box.
x | Point x coordinate. |
y | Point y coordinate. |
std::array<glm::tvec2<T>, 4> jGL::BoundingBox< T >::vertices |
Vertices of bounding box.