7 #include "abstractshape.h"
18 TAABB(
const glm::detail::tvec3<T> &llf,
const glm::detail::tvec3<T> &urb);
21 inline const glm::detail::tvec3<T> &llf()
const;
22 inline void setLLF(
const glm::detail::tvec3<T> &llf);
24 inline const glm::detail::tvec3<T> &urb()
const;
25 inline void setURB(
const glm::detail::tvec3<T> &urb);
27 T axisMin(Axis axis)
const;
28 T axisMax(Axis axis)
const;
30 glm::detail::tvec3<T> middle()
const;
32 virtual T extent(Axis axis)
const;
35 TAABB<T> moved(Axis axis, T delta)
const;
36 TAABB<T> moved(
const glm::detail::tvec3<T> &delta)
const;
38 void move(Axis axis, T delta);
39 void move(
const glm::detail::tvec3<T> &delta);
41 void expand(Axis axis, T delta);
42 TAABB<T> expanded(Axis axis, T delta)
const;
44 template<
typename OtherT>
bool intersects(
const TAABB<OtherT> &other)
const;
46 bool contains(
const TAABB<T> &other)
const;
47 template<
typename OtherT>
bool contains(
const glm::detail::tvec3<OtherT> &vec)
const;
49 virtual bool intersects(
const Sphere& sphere)
const override;
50 virtual bool nearTo(
const TAABB<int>& other)
const override;
51 virtual bool containedBy(
const TAABB<int>& other)
const override;
56 std::list<TAABB<T>> split(Axis axis)
const;
58 std::list<TAABB<T>> recursiveSplit(
int recursions, Axis axis)
const;
60 bool operator==(
const TAABB<T> &other)
const;
62 void extend(
const glm::detail::tvec3<T> & point);
68 glm::detail::tvec3<T> m_llf, m_urb;
Definition: abstractshape.h:7