added Ray class

git-svn-id: svn://anubis/gvsu@365 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2009-01-16 21:50:20 +00:00
parent fbf8146a55
commit 00a6331fe9
2 changed files with 31 additions and 0 deletions

12
cs658/final/util/Ray.cc Normal file
View File

@ -0,0 +1,12 @@
#include "Ray.h"
Ray::Ray()
{
}
Ray::Ray(const Vector & origin, const Vector & direction)
{
m_origin = origin;
m_direction = direction;
}

19
cs658/final/util/Ray.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef RAY_H
#define RAY_H RAY_H
#include "Vector.h"
class Ray
{
public:
Ray();
Ray(const Vector & origin, const Vector & direction);
private:
Vector m_origin;
Vector m_direction;
};
#endif