CCL Home Page
Up Directory CCL vec_diff
#include "utility.h"

void vec_diff(vector1,vector2,vector3)
/*============================================================================*/
/* PURPOSE: COMPUTE THE DIFFERENCE BETWEEN TWO VECTORS.
/* INPUTS:
/*	VECTOR1		(X,Y,Z) TRIPLET.
/*	VECTOR2		(X,Y,Z) TRIPLET.
/* OUTPUTS:
/*	VECTOR3		(X,Y,Z) TRIPLET EQUAL TO (VECTOR1 - VECTOR2).
/* WRITTEN: M.V.GRIESHABER
/* LAST MODIFICATION: 11 JUNE 1991 MVG
*/
   double vector1[3];
   double vector2[3];
   double vector3[3];
   {
   int i;

   for (i=0; i<3; i++)
      {
      vector3[i]=vector1[i]-vector2[i];
      }

   return;
   }
Modified: Fri Feb 11 17:00:00 1994 GMT
Page accessed 5034 times since Sat Apr 17 21:59:03 1999 GMT