home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / C-SSP.ARJ / VCRSPR.C < prev    next >
Encoding:
Text File  |  1984-06-14  |  247 b   |  12 lines

  1.     vcrspr (a,b,c)
  2.  
  3.       /*this function evaluates the cross product of two vectors.*/
  4.  
  5.       float a[],b[],c[];
  6.  
  7.     {
  8.       c[0] = a[1]*b[2] - a[2]*b[1];
  9.       c[1] = a[2]*b[0] - a[0]*b[2];
  10.       c[2] = a[0]*b[1] - a[1]*b[0];
  11.     }
  12.