#include #include #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 (unsigned int i = 0; i < res.size(); i++) { cout << "t: " << res[i] << endl; } return 0; }