|
|
In article <3960661E.A3C7871A@student.uni-siegen.de>, Markus Becker
<mar### [at] studentuni-siegende> wrote:
> As far as my understanding of C and the workings of the POV-type
> VECTOR go, this should *not* modify the "real" V1, since the value is
> passed on the stack. The V1 in the function gets modified, but *not*
> the parameter that is passed, example:
The type VECTOR is an array of three doubles. The name of an array is
the same as a pointer to the first element, so a function can modify a
VECTOR passed to it. The same goes for colors.
--
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
|