Apply @AnHardt reverse_pass changes
Plus: 3 times 2 float / to 1 float / and 2 float *
and, reciprocal is an optimized operation
This commit is contained in:
parent
360c553228
commit
22baf3356a
3 changed files with 26 additions and 31 deletions
|
|
@ -222,7 +222,7 @@
|
|||
z1 = z_values[x1_i][yi];
|
||||
|
||||
return z1 + xratio * (z_values[min(x1_i, GRID_MAX_POINTS_X - 2) + 1][yi] - z1); // Don't allow x1_i+1 to be past the end of the array
|
||||
// If it is, it is clamped to the last element of the
|
||||
// If it is, it is clamped to the last element of the
|
||||
// z_values[][] array and no correction is applied.
|
||||
}
|
||||
|
||||
|
|
@ -248,7 +248,7 @@
|
|||
z1 = z_values[xi][y1_i];
|
||||
|
||||
return z1 + yratio * (z_values[xi][min(y1_i, GRID_MAX_POINTS_Y - 2) + 1] - z1); // Don't allow y1_i+1 to be past the end of the array
|
||||
// If it is, it is clamped to the last element of the
|
||||
// If it is, it is clamped to the last element of the
|
||||
// z_values[][] array and no correction is applied.
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue