23 lines
394 B
C++
23 lines
394 B
C++
|
|
#ifndef RAY_H
|
|
#define RAY_H RAY_H
|
|
|
|
#include "Vector.h"
|
|
|
|
class Ray
|
|
{
|
|
public:
|
|
Ray();
|
|
Ray(const Vector & origin, const Vector & direction);
|
|
Vector & getOrigin() { return m_origin; }
|
|
Vector & getDirection() { return m_direction; }
|
|
Vector getPositionAt(double dist) const;
|
|
|
|
private:
|
|
Vector m_origin;
|
|
Vector m_direction;
|
|
};
|
|
|
|
#endif
|
|
|