home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 015.lha / tracer_source / rtd.h < prev    next >
C/C++ Source or Header  |  1986-11-10  |  470b  |  49 lines

  1. /*
  2.     rtd.h
  3.  
  4. */
  5.  
  6. #ifndef    MYMATH_H
  7. # include "MyMath.h"
  8. #endif
  9.  
  10. struct color {
  11.     int    r,
  12.         g,
  13.         b;
  14. };
  15.  
  16. struct vector {
  17.     FFP    x,
  18.         y,
  19.         z,
  20.         l,
  21.         xzl;
  22. };
  23.  
  24. struct ray {
  25.     struct    vector    org;
  26.     struct    vector    dir;
  27. };
  28.  
  29. struct sphere {
  30.     struct    vector    cent;
  31.     FFP    rad;
  32. };
  33.  
  34. struct ball {
  35.     struct    sphere    s;
  36.     FFP    ior;
  37.     FFP    rfr;
  38.     FFP    rfl;
  39.     FFP    dif;
  40.     FFP    amb;
  41. };
  42.  
  43. struct mat {
  44.     struct    vector    x;    /*  first !row! */
  45.     struct    vector    y;    /* second !row! */
  46.     struct    vector    z;    /*  third !row! */
  47. };
  48.  
  49.