for (x = startx;x < endx;x++)
{
z = zf[x];
- tc[0] = (data[0] + slope[0]*x) * z * tcscale[0];
- tc[1] = (data[1] + slope[1]*x) * z * tcscale[1];
+ tc[0] = (data[0] + slope[0]*x) * z * tcscale[0] - 0.5f;
+ tc[1] = (data[1] + slope[1]*x) * z * tcscale[1] - 0.5f;
tci[0] = (int)floor(tc[0]);
tci[1] = (int)floor(tc[1]);
tci1[0] = tci[0] + 1;
for (x = startx;x < endx;x++)
{
z = zf[x];
- tc[0] = (data[0] + slope[0]*x) * z * tcscale[0];
- tc[1] = (data[1] + slope[1]*x) * z * tcscale[1];
+ tc[0] = (data[0] + slope[0]*x) * z * tcscale[0] - 0.5f;
+ tc[1] = (data[1] + slope[1]*x) * z * tcscale[1] - 0.5f;
tci[0] = (int)floor(tc[0]);
tci[1] = (int)floor(tc[1]);
tci1[0] = tci[0] + 1;
for (x = startx;x < endx;x++)
{
z = zf[x];
- tc[0] = (data[0] + slope[0]*x) * z * tcscale[0];
- tc[1] = (data[1] + slope[1]*x) * z * tcscale[1];
+ tc[0] = (data[0] + slope[0]*x) * z * tcscale[0] - 0.5f;
+ tc[1] = (data[1] + slope[1]*x) * z * tcscale[1] - 0.5f;
tci[0] = (int)floor(tc[0]);
tci[1] = (int)floor(tc[1]);
tci[0] = tci[0] >= tcimin[0] ? (tci[0] <= tcimax[0] ? tci[0] : tcimax[0]) : tcimin[0];
for (x = startx;x < endx;x++)
{
z = zf[x];
- tc[0] = (data[0] + slope[0]*x) * z * tcscale[0];
- tc[1] = (data[1] + slope[1]*x) * z * tcscale[1];
+ tc[0] = (data[0] + slope[0]*x) * z * tcscale[0] - 0.5f;
+ tc[1] = (data[1] + slope[1]*x) * z * tcscale[1] - 0.5f;
tci[0] = (int)floor(tc[0]);
tci[1] = (int)floor(tc[1]);
tci[0] &= tciwrapmask[0];