GLYLIB
0.3.0b
|
00001 // Function written by B. Lachele Foley, 2007 00002 #include <mylib.h> 00003 #include <molecules.h> 00004 //#include "../inc/mylib.h" 00005 //#include "../inc/molecules.h" 00006 /* This function returns the dot product of two vectors. */ 00007 /*********************** get_dotprod() *******************/ 00008 double get_dotprod(vectormag_3D a,vectormag_3D b){ 00009 double dp=0; 00010 dp=(a.i*b.i+a.j*b.j+a.k*b.k); 00011 return dp; 00012 } 00013 00014