--- trunk/OOPSE-1.0/utils/quickLate.c 2004/07/16 18:58:03 1334 +++ trunk/OOPSE-1.0/utils/quickLate.c 2004/07/20 17:07:01 1359 @@ -6,10 +6,6 @@ #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; @@ -190,7 +187,7 @@ int main(argc, argv) default: - (void)fprintf(stderr, "Bad option \"-%s\"\n", current_flag); + fprintf(stderr, "Bad option \"-%c\"\n", current_flag); usage(); } j++; @@ -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 ); +}