Polarith AI
1.8

◆ Lerp()

static void Lerp ( Structure  a,
Structure  b,
float  t,
Structure  result 
)
static

Linearly interpolates between two Structure instances.

Interpolates between the structures a and b by the interpolant t . The parameter t is clamped to the range [0, 1].

When t ==0 results in a . When t ==1 results in b . When t ==0.5 results in the structure midway between a and b .

Parameters
aThe first structure to interpolate with.
bThe second structure to interpolate with.
tThe interpolant.
resultThe structure in which the results are written in.
Exceptions
NullReferenceExceptionIf either a , b or result is null.
Imprint