Category : initialization

I am trying to understand some code right now and I’ve stumbled upon something that I don’t really understand regarding the constructors of the following class: intersection.cpp: namespace rt { Intersection::Intersection(float distance, const Ray& ray, const Solid* solid, const Vector& normal, const Point& local) : distance(distance), ray(ray), solid(solid) { } Intersection Intersection::failure() { return Intersection(INFINITY, ..

Read more