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 returns a vector with magnitude in d*/ 00007 double get_magnitude(vectormag_3D v){ 00008 double d=0; 00009 d=sqrt(v.i*v.i+v.j*v.j+v.k*v.k); 00010 return d; 00011 }