josh a970d30fed added getPositionAt() to Ray module
git-svn-id: svn://anubis/gvsu@368 45c1a28c-8058-47b2-ae61-ca45b979098e
2009-01-17 19:40:35 +00:00

23 lines
402 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() const { return m_origin; }
Vector getDirection() const { return m_direction; }
Vector getPositionAt(double dist) const;
private:
Vector m_origin;
Vector m_direction;
};
#endif