5 #include "abstractshape.h"
10 template<
typename T>
class TAABB;
14 Ray(
const glm::vec3& origin,
const glm::vec3& direction);
16 const glm::vec3& origin()
const;
17 void setOrigin(
const glm::vec3& origin);
19 const glm::vec3& direction()
const;
20 void setDirection(
const glm::vec3& direction);
22 virtual bool intersects(
const Sphere& sphere)
const override;
23 virtual bool nearTo(
const TAABB<int>& aabb)
const override;
24 virtual bool containedBy(
const TAABB<int>& aabb)
const override;
26 static Ray fromTo(
const glm::vec3& from,
const glm::vec3& to);
31 glm::vec3 m_direction;
Definition: abstractshape.h:7