|
|
Invisible wrote:
> 44: double n=sizeof(spheres)/sizeof(Sphere);
>
> Well... that's... one way to figure out how big an array is. :-.
That's the usual way to figure out how big an array is in C and C++.
> Evidently my C++ is weak, but... how is
> 53: Vec nl=n.dot(r.d)<0?n:n*-1;
> different from "nl = -abs(n.dot(r.d))"?
In the lack of needing to define the abs() function?
> Also, where THE HELL is "Xi" defined? I can see it *used* in several
> places, but I can't find a definitions.
Line 48. It's an argument to the function. Note that text search will
usually answer that sort of question on a C program, and often on a C++
program too.
Not always, mind, but usually.
> Line 79 means each row of pixels is computed in parallel, right?
Got me. It looks like someone is asking the compiler to do that if it can.
--
Darren New, San Diego CA, USA (PST)
Forget "focus follows mouse." When do
I get "focus follows gaze"?
Post a reply to this message
|
|