the first start value - a 2-element vector object
the first end value - a 2-element vector object
the second start value - a 2-element vector object
the second end value - a 2-element vector object
a floating point number in the interval [0.0, 1.0]
a floating point number in the interval [0.0, 1.0]
a 2-element vector in which to store the result
Optional tmp: Vec2an optional 2-element vector for temporary storage. If not provided, one will be created (and then discarded) internally
c - the interpolation result
Generated using TypeDoc
Bilinear interpolation between
a1,b1,a2andb2based onsandt, wheresandtare numbers between0.0and1.0. The result is stored inc.The calculation is as follows:
a1andb1are interpolated based onsto givep,a2andb2are interpolated based onsto giveq, and then the final result is obtained by interpolatingpandqbased ont.The result will be equal to
a1when bothsandtis0.0, equal toa2whensis0.0andtis1.0, equal tob1whensis1.0andtis0.0, and equal tob2when bothsandtis1.0