Method Interp
Interp(DiffusionProfileSettings[], DiffusionProfileSettings[], float)
Interpolates two values using a factor t
.
Declaration
public override void Interp(DiffusionProfileSettings[] from, DiffusionProfileSettings[] to, float t)
Parameters
Type | Name | Description |
---|---|---|
DiffusionProfileSettings[] | from | The start value. |
DiffusionProfileSettings[] | to | The end value. |
float | t | The interpolation factor in range [0,1]. |
Overrides
Remarks
By default, this method does a "snap" interpolation, meaning it returns the value
to
if t
is higher than 0, and from
otherwise.