From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Page Faults Date: Thu, 28 Nov 1996 23:46:11 GMT Organization: Oxford University Lines: 26 Message-ID: <329e2296.22687782@news.ox.ac.uk> References: <19961129 DOT 012507 DOT 8439 DOT 1 DOT aclemmer AT juno DOT com> NNTP-Posting-Host: mc31.merton.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Thu, 28 Nov 1996 18:27:41 GMT, aclemmer AT juno DOT com (Aaron M Clemmer) wrote: >void xform_vector(matrix m, vector svect, vector *result) >{ > result->x = FixedMul(m[0][0], svect.x) + > FixedMul(m[0][1], svect.y) + > FixedMul(m[0][2], svect.z) + m[0][3]; >.. (more of the same) >} > >And I'm calling the code like this: >(cube is an array of vectors) > >xform_vector(transmatrix, cube[i], &vtemp); Presumably you have declared: matrix transmatrix; vector vtemp,cube[num_cubes]; Other than that, I can't see any errors. Posting the typedef, struct and variable declarations would be helpful. gf