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