Function interpNearest
Nearest-neighbour interpolation
T interpNearest(T)
(
T x,
T y,
float t
);
Example
assert(interpNearest(0.0f, 2.0f, 0.3f) == 0.0f);
Nearest-neighbour interpolation
T interpNearest(T)
(
T x,
T y,
float t
);
assert(interpNearest(0.0f, 2.0f, 0.3f) == 0.0f);