home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / libray / libobj / sweptsph.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-09  |  1.1 KB  |  46 lines

  1. /*
  2.  *
  3.  *
  4.  *
  5.  *    sweptsph.h
  6.  *
  7.  *
  8.  *    Copyright (C) 1992 by Lawrence K. Coffin, Craig Colb
  9.  *    All Rights reserved.
  10.  *
  11.  * This software may be freely copied, modified, and redistributed
  12.  * provided that this copyright notice is preserved on all copies.
  13.  *
  14.  * You may not distribute this software, in whole or in part, as part of
  15.  * any commercial product without the express consent of the authors.
  16.  *
  17.  * There is no warranty or other guarantee of fitness of this software
  18.  * for any purpose.  It is provided solely "as is".
  19.  *
  20.  * 06/20/92 Larry Coffin
  21.  * Initial version.
  22.  * 
  23.  */
  24.  
  25.  
  26. #ifndef SWEPTSPH_H
  27. #define SWEPTSPH_H
  28.  
  29. #define GeomSweptSphCreate(c,r)  GeomCreate((GeomRef)SweptSphCreate(c,r), SweptSphMethods())
  30.  
  31.  
  32.  
  33. typedef struct{
  34.     Vector a0, a1, a2, a3;
  35.     Float rad[4], pb[7], pd[5];
  36. }SweptSph;
  37.  
  38. extern SweptSph *SweptSphCreate();
  39. extern Methods *SweptSphMethods();
  40. extern int SweptSphIntersect(), SweptSphNormal();
  41. extern void SweptSphStats(), SweptSphBounds();
  42. extern char *SweptSphName();
  43. extern int FindRoots(), findit(), newtonit();
  44. extern Float evalpoly();
  45. #endif SWEPTSPH_H
  46.