21 static int sphere_bbox(
void * obj, vector * min, vector * max);
23 static void sphere_normal(
const sphere *,
const vector *,
const ray *, vector *);
static int sphere_bbox(void *obj, vector *min, vector *max)
static void sphere_normal(const sphere *spr, const vector *pnt, const ray *incident, vector *N)
double flt
generic floating point number, using double
static void sphere_intersect(const sphere *spr, ray *ry)
object * newsphere(void *, vector, flt)