int main() { // defines output std::ofstream output("geometrical.dat", std::ofstream::out); vec dim = {4, 10}; double max_vel = 1; // Implement other lenses and change this line to use them sphere lens = {4, 5, 5}; ray_array rays = light_gen(dim, lens, max_vel, 0 /*0.523598776*/); propagate(rays, lens, 0.0001, max_vel, output); }
int main(){ // defines output std::ofstream output("out.dat", std::ofstream::out); dimensions dim; dim.x = 4; dim.y = 10; // origin of the sphere dimensions origin; origin.x = 5; origin.y = 5; double radius = 5; double max_vel = 1; light_rays pvec = light_gen(dim, max_vel, 0.523598776, origin, radius); pvec = propagate(pvec, 0.1, max_vel, origin, radius, output); output << "\n \n5 0 0 0 \n5 5 0 0 \n"; }