*/
#include "gmxpre.h"
+#include <cmath>
+
#include "gromacs/commandline/pargs.h"
#include "gromacs/fileio/confio.h"
#include "gromacs/fileio/trxio.h"
mat4 Rx, Ry, Rz, Rinvy, Rinvz, Mtot;
mat4 temp1, temp2, temp3;
vec4 xv;
- int i, j, ai;
+ int i, ai;
rvec_sub(tail, head, arrow);
arrow_len = norm(arrow);
}
/* Compute theta and phi that describe the arrow */
- theta = acos(arrow[ZZ]/arrow_len);
- phi = atan2(arrow[YY]/arrow_len, arrow[XX]/arrow_len);
+ theta = std::acos(arrow[ZZ]/arrow_len);
+ phi = std::atan2(arrow[YY]/arrow_len, arrow[XX]/arrow_len);
if (debug)
{
fprintf(debug, "Phi = %.1f, Theta = %.1f\n", RAD2DEG*phi, RAD2DEG*theta);