fixed test/tests.cc
git-svn-id: svn://anubis/fart/trunk@58 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
fa353392c6
commit
e34bdf0d71
@ -10,11 +10,11 @@ int main()
|
||||
Sphere s(1.0);
|
||||
Ray ray(Vector(0, -2.5, 0), Vector(0, 1, 0));
|
||||
|
||||
Solver::Result res = s.intersect(ray);
|
||||
Shape::IntersectList res = s.intersect(ray);
|
||||
|
||||
for (int i = 0; i < res.numResults; i++)
|
||||
for (int i = 0; i < res.size(); i++)
|
||||
{
|
||||
cout << "t: " << res.results[i] << endl;
|
||||
cout << "t: " << res[i] << endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user