Tesla Graphics Engine Documentation (January 2012)
Lerp Method (a, b, percent)
Tesla
►
Tesla.Math
►
MathUtils
►
Lerp(Single, Single, Single)
C#
Linearly interpolates between two values.
Declaration Syntax
C#
public
static
float
Lerp
(
float
a
,
float
b
,
float
percent
)
Parameters
a
(
Single
)
Starting value
b
(
Single
)
Ending value
percent
(
Single
)
Amount to interpolate
Return Value
Interpolated value
Assembly:
Tesla
(Module: Tesla) Version: 0.5.0.0 (0.5.0.0)