Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void LerpPositionTextured2D() { var vertex = new VertexPosition2DUV(Vector2D.UnitX, Vector2D.One); var vertex2 = new VertexPosition2DUV(Vector2D.UnitY, Vector2D.Zero); var lerpedVertex = vertex.Lerp(vertex2, 0.5f); Assert.AreEqual(lerpedVertex.Position, Vector2D.Half); Assert.AreEqual(lerpedVertex.UV, Vector2D.One); }
See Also