Closed GoogleCodeExporter closed 9 years ago
Hi. We are having exactly the same issue. Espresso interpolates up to 10 points
between start and end. But it seems to forget using the start and the end, and
it only uses those intermediate points.
I managed to make it work fine with this workaround that tweaks the start and
end points forcing the interpolate function to have the original start and end
points as the first and last interpolated points.
float newStart += (start - end) / 9;
float newEnd += start - end - 11 * (start - end) / 9;
(the calculations were deducted from the interpolate function)
Hope this helps.
Original comment by miguel.a...@gmail.com
on 3 Dec 2014 at 3:45
Sorry, I made a mistake when pasting and translating my code:
float newStart = start;
float newEnd = end;
newStart += (start - end) / 9;
newEnd += start - end - 11 * (start - end) / 9;
I guess it can be simplified as:
float newStart = start + (start - end) / 9;
float newEnd = start - 11 * (start - end) / 9;
Best regards.
Original comment by miguel.a...@gmail.com
on 3 Dec 2014 at 3:50
Original comment by vale...@google.com
on 16 Dec 2014 at 10:25
Fixed in Espresso 2.0
Original comment by vale...@google.com
on 20 Dec 2014 at 4:33
Original issue reported on code.google.com by
dav...@intrepid.io
on 19 Nov 2014 at 4:25