VertexFormatTests LerpVertexPosition3DUVSkinned Method Delta Engine Documentation

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

public void LerpVertexPosition3DUVSkinned()
Examples

[Test]
public void LerpVertexPosition3DUVSkinned()
{
    var vertex = new VertexPosition3DUVSkinned(Vector3D.UnitX, Vector2D.Zero,
        new SkinningData(0, 1, 1.0f, 1.0f));
    var vertex2 = new VertexPosition3DUVSkinned(Vector2D.UnitY, Vector2D.One,
        new SkinningData(0, 1, 0.0f, 0.0f));
    var lerpedVertex = vertex.Lerp(vertex2, 0.5f);
    Assert.AreEqual(lerpedVertex.Position, new Vector3D(0.5f, 0.5f, 0f));
    Assert.AreEqual(lerpedVertex.UV, Vector2D.Half);
    Assert.AreEqual(lerpedVertex.Skinning, new SkinningData(0, 1, 0.5f, 0.5f));
}
See Also