16 #define FUNC_NAMEm "misrfor" 35 i = (float)((x -
xc) /
sx);
36 j = (float)((y -
yc) /
sy);
40 i = (fabs(i) < 1E-5 ? 0.0 : i);
41 j = (fabs(j) < 1E-5 ? 0.0 : j);
45 b = (int)(floor((i + 0.5) /
nl_var)) + 1;
46 if (b < 1 || b >
nb) {
47 sprintf(msg,
"block is out of range (1 < %d < %d)", b, nb);
53 l = (float)(i - ((b - 1) *
nl_var));
54 if (l < -0.5 || l >
nl_var - 0.5) {
55 sprintf(msg,
"line is out of range (0 < %e < %d)", l,
nl_var);
62 if (s < -0.5 || s >
ns - 0.5) {
63 sprintf(msg,
"sample is out of range (0 < %e < %d)", s,
ns);
int misrfor(const double x, const double y, int *block, float *line, float *sample)
#define WRN_LOG_JUMP(msg)