Logo Search packages:      
Sourcecode: tachyon version File versions  Download package

ring.h

/* 
 * ring.h - This file contains the defines for rings etc.
 *
 *  $Id: ring.h,v 1.10 2002/08/04 21:43:34 johns Exp $
 */

object * newring(void * tex, vector ctr, vector norm, flt in, flt out);

#ifdef RING_PRIVATE 
typedef struct {
  RT_OBJECT_HEAD
  vector ctr;
  vector norm;
  flt inrad;
  flt outrad;
} ring; 

static int ring_bbox(void * obj, vector * min, vector * max);
static void ring_intersect(const ring *, ray *);
static void ring_normal(const ring *, const vector *, const ray * incident, vector *);
#endif


Generated by  Doxygen 1.6.0   Back to index