Vector3DTests Lerp Method Delta Engine Documentation

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

public void Lerp()
Examples

[Test]
public void Lerp()
{
    var u = new Vector3D(10, 20, 30);
    var v = new Vector3D(30, 20, 10);
    Assert.AreEqual(Vector3D.Zero, Vector3D.Zero.Lerp(Vector3D.One, 0));
    Assert.AreEqual(Vector3D.Zero, Vector3D.One.Lerp(Vector3D.Zero, 1));
    Assert.AreEqual(new Vector3D(0.5f, 0.5f, 0.5f), Vector3D.Zero.Lerp(Vector3D.One, 0.5f));
    Assert.AreEqual(new Vector3D(16, 20, 24), u.Lerp(v, 0.3f));
}
See Also