Tesla Graphics Engine Documentation (January 2012)
Lerp Method (a, b, percent, result)
Tesla
►
Tesla.Math
►
Vector2
►
Lerp(Vector2
%
, Vector2
%
, Single, Vector2
%
)
C#
Linearly interpolates between two vectors.
Declaration Syntax
C#
public
static
void
Lerp
(
ref
Vector2
a
,
ref
Vector2
b
,
float
percent
,
out
Vector2
result
)
Parameters
a
(
Vector2
%
)
Starting vector
b
(
Vector2
%
)
Ending vector
percent
(
Single
)
Amount to interpolate by
result
(
Vector2
%
)
Existing vector to hold result
Assembly:
Tesla
(Module: Tesla) Version: 0.5.0.0 (0.5.0.0)