Also, try to read through Chapter 5 in the textbook before next class. In the next lecture we'll be going over the material in that chapter.
int raySphere(double E[], double W[], double C[], double r, double T[])which computes the intersection of a ray with a sphere. raySphere should return the number of intersections of the ray with the sphere, and place the value of each intersection parameter (if any) in array T. For example, if there are two intersections then raySphere should place values into T[0] and T[1], and return the value 2. Remember to disregard any non-positive values of t.
void rayPoint(double E[], double W[], double t, double P[])which calculates a point P along a ray, given parameter t.