28 #ifndef BERSERK_TAABB_HPP
29 #define BERSERK_TAABB_HPP
60 min = center - offset;
61 max = center + radius;
75 return min <= p && p <= max;
79 return min <= aabb.min && aabb.max <= max;
94 return (max + min) *
static_cast<T>(0.5);
98 return (max - min) *
static_cast<T>(0.5);
#define BRK_NS_END
Definition: Config.hpp:48
Axis-aligned 3d bounding box.
Definition: TAabb.hpp:49
bool Contains(const TVecN< T, 3 > &p) const
Definition: TAabb.hpp:74
TAabb(const TVecN< T, 3 > &minv, const TVecN< T, 3 > &maxv)
Definition: TAabb.hpp:53
TVecN< T, 3 > GetCenter() const
Definition: TAabb.hpp:93
void GetPoints(T *points) const
Definition: TAabb.hpp:82
const TVecN< T, 3 > & GetMax() const
Definition: TAabb.hpp:105
const TVecN< T, 3 > & GetMin() const
Definition: TAabb.hpp:101
void Fit(const TVecN< T, 3 > &p)
Definition: TAabb.hpp:64
TAabb(const TVecN< T, 3 > ¢er, T radius)
Definition: TAabb.hpp:58
TVecN< T, 3 > GetExtent() const
Definition: TAabb.hpp:97
bool Contains(const TAabb< T > &aabb) const
Definition: TAabb.hpp:78
void Fit(const TAabb &aabb)
Definition: TAabb.hpp:69
static TVecN Min(const TVecN &a, const TVecN &b)
Definition: TVecN.hpp:455
static TVecN Max(const TVecN &a, const TVecN &b)
Definition: TVecN.hpp:465
Definition: GLDevice.cpp:46