the first start value - a floating point number
the first end value - a floating point number
the second start value - a floating point number
the second end value - a floating point number
a floating point number in the interval [0.0, 1.0]
a floating point number in the interval [0.0, 1.0]
a value between a1
, b1
, a2
and b2
Generated using TypeDoc
Bilinear interpolation between
a1
,b1
,a2
andb2
based ons
andt
, wheres
andt
are numbers between0.0
and1.0
.The calculation is as follows:
a1
andb1
are interpolated based ons
to givep
,a2
andb2
are interpolated based ons
to giveq
, and then the final result is obtained by interpolatingp
andq
based ont
.The result will be equal to
a1
when boths
andt
is0.0
, equal toa2
whens
is0.0
andt
is1.0
, equal tob1
whens
is1.0
andt
is0.0
, and equal tob2
when boths
andt
is1.0