18 #ifndef __H__OCULAR_MATH_BOUNDS_AABB__H__
19 #define __H__OCULAR_MATH_BOUNDS_AABB__H__
21 #include "Math/Bounds/Bounds.hpp"
22 #include "Graphics/Mesh/Vertex.hpp"
24 #include "Math/Matrix4x4.hpp"
25 #include "Math/Vector3.hpp"
244 bool intersects(
Plane const& plane, IntersectionType* result =
nullptr)
const;
256 bool contains(
Vector3f const& point, IntersectionType* result =
nullptr)
const;
272 void calculateMinMaxPoints();
void expand(Vector3f const &modifier)
Definition: BoundsAABB.cpp:191
bool intersects(Ray const &ray) const
Definition: BoundsAABB.cpp:246
Vector3f const & getMaxPoint() const
Definition: BoundsAABB.cpp:186
void setExtents(Vector3f const &extents)
Definition: BoundsAABB.cpp:165
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: BoundsOBB.hpp:56
void setCenter(Vector3f const ¢er)
Definition: BoundsAABB.cpp:159
void construct(std::list< Point3f > const &points, Math::Matrix4x4 const &matrix=Math::Matrix4x4())
Definition: BoundsAABB.cpp:69
Vector3f const & getExtents() const
Definition: BoundsAABB.cpp:176
Vector3f const & getMinPoint() const
Definition: BoundsAABB.cpp:181
A 4x4 column-major float matrix.
Definition: Matrix4x4.hpp:64
bool contains(Vector3f const &point, IntersectionType *result=nullptr) const
Definition: BoundsAABB.cpp:336
Definition: Bounds.hpp:45
Definition: BoundsAABB.hpp:63
Definition: BoundsSphere.hpp:52
Vector3f const & getCenter() const
Definition: BoundsAABB.cpp:171
void expandToContain(Vector3f const &point)
Definition: BoundsAABB.cpp:202