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
a
andb
based ontx
,ty
,tz
andtw
, wheretx
,ty
,tz
andtw
are numbers between0.0
and1.0
. The result is stored inc
.The calculation is as follows:
a.x
andb.x
are interpolated based ontx
to givec.x
,a.y
andb.y
are interpolated based onty
to givec.y
,a.z
andb.z
are interpolated based ontz
to givec.z
,a.w
andb.w
are interpolated based ontw
to givec.w
.The result will be equal to
a
whentx
,ty
,tz
andtw
are all0.0
, equal tob
whentx
,ty
,tz
andtw
are all1.0
, and halfway betweena
andb
whentx
,ty
,tz
andtw
are all0.5