5 #include "abstractshape.h"
9 template<
typename T>
class TAABB;
14 Sphere(
const glm::vec3 &position,
float radius);
18 void setRadius(
float radius);
20 const glm::vec3 &position()
const;
21 void setPosition(
const glm::vec3 &position);
23 bool contains(
const Sphere &other)
const;
25 virtual bool intersects(
const Sphere &other)
const override;
26 virtual bool nearTo(
const TAABB<int>& aabb)
const override;
27 virtual bool containedBy(
const TAABB<int>& aabb)
const override;
29 template<
typename T>
static Sphere containing(
const TAABB<T>& aabb);
Definition: abstractshape.h:7