10 Ray(const Vec3f& org, const Vec3f& dir);
13 Ray& operator=(const Ray& r);
15 const Vec3f& origin() const;
16 const Vec3f& direction() const;
19 Vec3f m_org; //!< ray origin
20 Vec3f m_dir; //!< ray direction
21 float m_t; //!< current/maximum hit distance
24 inline std::ostream &operator<<(std::ostream &o,const Ray &ray)
25 { o << "Ray [" << ray.origin() << "+t*" << ray.direction() << "]"; return o; }