18 #ifndef __H__OCULAR_MATH_BOUNDS_SPHERE__H__
19 #define __H__OCULAR_MATH_BOUNDS_SPHERE__H__
21 #include "Math/Bounds/Bounds.hpp"
22 #include "Graphics/Mesh/Vertex.hpp"
24 #include "Math/Matrix4x4.hpp"
25 #include "Math/Vector4.hpp"
99 void expand(
float const amount);
191 bool intersects(
Plane const& plane, IntersectionType* result =
nullptr)
const;
201 bool contains(
Vector3f const& point, IntersectionType* result =
nullptr)
const;
void setRadius(float radius)
Definition: BoundsSphere.cpp:380
void expandToContain(Vector3f const &point)
Definition: BoundsSphere.cpp:400
bool intersects(Ray const &ray) const
Definition: BoundsSphere.cpp:449
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: BoundsOBB.hpp:56
void expand(float const amount)
Definition: BoundsSphere.cpp:395
void construct(std::list< Vector3f > const &points, Math::Matrix4x4 const &matrix=Math::Matrix4x4())
Definition: BoundsSphere.cpp:67
float getRadius() const
Definition: BoundsSphere.cpp:390
A 4x4 column-major float matrix.
Definition: Matrix4x4.hpp:64
Definition: Bounds.hpp:45
Definition: BoundsAABB.hpp:63
bool contains(Vector3f const &point, IntersectionType *result=nullptr) const
Definition: BoundsSphere.cpp:553
Definition: BoundsSphere.hpp:52
Vector3f const & getCenter() const
Definition: BoundsSphere.cpp:385
void setCenter(Vector3f const ¢er)
Definition: BoundsSphere.cpp:375