--- trunk/OOPSE-1.0/utils/quickLate.c 2004/07/19 21:52:01 1355 +++ trunk/OOPSE-1.0/utils/quickLate.c 2004/07/20 17:07:01 1359 @@ -6,10 +6,6 @@ inline double roundMe( double x ){ #include #include -inline double roundMe( double x ){ - return ( x >= 0 ) ? floor( x + 0.5 ) : ceil( x - 0.5 ); -} - struct coords{ double pos[3]; // cartesian coords double q[4]; // the quanternions @@ -39,6 +35,7 @@ void matVecMul3(double m[3][3], double inVec[3], doubl double matDet3(double a[3][3]); void invertMat3(double a[3][3], double b[3][3]); void matVecMul3(double m[3][3], double inVec[3], double outVec[3]); +double roundMe(double x); int main(argc, argv) int argc; @@ -884,3 +881,7 @@ void matVecMul3(double m[3][3], double inVec[3], doubl outVec[1] = m[1][0]*a0 + m[1][1]*a1 + m[1][2]*a2; outVec[2] = m[2][0]*a0 + m[2][1]*a1 + m[2][2]*a2; } + +double roundMe( double x ){ + return ( x >= 0 ) ? floor( x + 0.5 ) : ceil( x - 0.5 ); +}