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
a
andb
based ontx
,ty
andtz
, wheretx
,ty
andtz
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
.The result will be equal to
a
whentx
,ty
andtz
are all0.0
, equal tob
whentx
,ty
andtz
are all1.0
, and halfway betweena
andb
whentx
,ty
andtz
are all0.5