the start x, y and z values - a 3-element vector object
the end x, y and z values - a 3-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 3-element vector in which to store the result
c - the interpolation result
Generated using TypeDoc
Element-wise linear interpolation between
aandbbased ontx,tyandtz, wheretx,tyandtzare 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.The result will be equal to
awhentx,tyandtzare all0.0, equal tobwhentx,tyandtzare all1.0, and halfway betweenaandbwhentx,tyandtzare all0.5