Piccolo.NET

PNode.Lerp Method 

Linearly interpolates between a and b, based on t. Specifically, it computes Lerp(a, b, t) = a + t*(b - a). This produces a result that changes from a (when t = 0) to b (when t = 1).

public static float Lerp(
   float t,
   float a,
   float b
);

Parameters

t
The variable 'time' parameter.
a
The starting value.
b
The ending value.

Return Value

A value between a and b determined by t.

See Also

PNode Class | UMD.HCIL.Piccolo Namespace


Web Accessibility