the start x, y and z values - a 4-element vector object
the end x, y and z values - a 4-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 floating point number in the interval [0.0, 1.0]
a floating point number in the interval [0.0, 1.0]
a 4-element vector in which to store the result
c - the interpolation result
Generated using TypeDoc
Element-wise linear interpolation between
aandbbased ontx,ty,tzandtw, wheretx,ty,tzandtware numbers between0.0and1.0. The result is stored inc.The calculation is as follows:
a.xandb.xare interpolated based ontxto givec.x,a.yandb.yare interpolated based ontyto givec.y,a.zandb.zare interpolated based ontzto givec.z,a.wandb.ware interpolated based ontwto givec.w.The result will be equal to
awhentx,ty,tzandtware all0.0, equal tobwhentx,ty,tzandtware all1.0, and halfway betweenaandbwhentx,ty,tzandtware all0.5