render.h (269B)
1 typedef struct Vect Vect; 2 typedef struct Ray Ray; 3 typedef struct Sphere Sphere; 4 5 struct Vect { 6 double x; 7 double y; 8 double z; 9 }; 10 11 struct Ray { 12 Vect pos; 13 Vect dir; 14 }; 15 16 struct Sphere { 17 Vect pos; 18 double radius; 19 }; 20 21 Vect Pwhite = {1, 1, 1}; 22 Vect Pblack = {0, 0, 0}; 23