#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;
}
|