home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / raytrace.sit / rtd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-13  |  433 b   |  32 lines

  1. struct color {
  2. int r;int g;int b;};
  3.  
  4. struct vector {
  5. double x;
  6. double y;
  7. double z;
  8. double l;
  9. double xzl;} ;
  10.  
  11. struct ray {
  12. struct vector org;
  13. struct vector dir;} ;
  14.  
  15. struct sphere {
  16. struct vector cent;
  17. double rad;} ;
  18.  
  19. struct ball {
  20. struct sphere s;
  21. double ior;
  22. double rfr;
  23. double rfl;
  24. double dif;
  25. double amb;
  26. };
  27.  
  28. struct mat {
  29. struct vector x;  /* first !row! */
  30. struct vector y;  /*second !row! */
  31. struct vector z;}; /* third !row! */
  32.