12 Ray(const Vec3f& org, const Vec3f& dir);
15 Ray& operator=(const Ray& r);
17 const Vec3f& origin() const;
18 const Vec3f& direction() const;
21 unsigned int recursionDepth() const;
23 void setOrigin(const Vec3f& o);
24 void setDir(const Vec3f& d);
26 void setRecursionDepth(unsigned int i);
29 Vec3f m_org; //!< ray origin
30 Vec3f m_dir; //!< ray direction
31 float m_t; //!< current/maximum hit distance
33 unsigned int m_level; //!< level of recursion
38 inline std::ostream &operator<<(std::ostream &o,const Ray &ray)
39 { o << "Ray [" << ray.origin() << "+t*" << ray.direction() << "]"; return o; }