C++ translation of a Raytracing Project.