MathExtensionsTests Lerp Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Lerp()
Examples

[Test]
public void Lerp()
{
    Assert.AreEqual(1, MathExtensions.Lerp(1, 3, 0));
    Assert.AreEqual(0.2f, MathExtensions.Lerp(0, 1, 0.2f));
    Assert.AreEqual(0, MathExtensions.Lerp(-1, 1, 0.5f));
    Assert.AreEqual(0.5f, MathExtensions.Lerp(-4, -1, 1.5f));
}
See Also