summaryrefslogtreecommitdiff
path: root/test/raytracer/intersect.h
blob: 35241a604720c0426c0859ea24f1a2c0724c37cf (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Return the closest base object intersecting the given ray, and
   the curvilinear abscissa t of the intersection point.
   Return NULL if no intersection.
   Return t = 0.0 if the viewpoint (origin of the ray) is inside an
   object. */

struct object * intersect_ray(struct point * p,
                              struct vector * v,
                              struct object * obj,
                              int initial,
                              /*out*/ flt * t);