Tesla Graphics Engine Documentation (January 2012)
Lerp Method (a, b, percent)
Tesla
►
Tesla.Math
►
Vector3
►
Lerp(Vector3, Vector3, Single)
C#
Linearly interpolates between two vectors.
Declaration Syntax
C#
public
static
Vector3
Lerp
(
Vector3
a
,
Vector3
b
,
float
percent
)
Parameters
a
(
Vector3
)
Starting vector
b
(
Vector3
)
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)