fart/test/tests.cc
Josh Holtrop e34bdf0d71 fixed test/tests.cc
git-svn-id: svn://anubis/fart/trunk@58 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-01-28 01:15:20 +00:00

22 lines
361 B
C++

#include <iostream>
#include <cassert>
#include "util/Transform.h"
#include "shapes/Sphere.h"
using namespace std;
int main()
{
Sphere s(1.0);
Ray ray(Vector(0, -2.5, 0), Vector(0, 1, 0));
Shape::IntersectList res = s.intersect(ray);
for (int i = 0; i < res.size(); i++)
{
cout << "t: " << res[i] << endl;
}
return 0;
}