GraphLine AddValue Method (Single)Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Graphs
Assembly: DeltaEngine.Rendering2D.Graphs (in DeltaEngine.Rendering2D.Graphs.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void AddValue(
	float value
)
Remarks

Tests: DeltaEngine.Rendering2D.Graphs.Tests.GraphLineTests
Examples

1 unit tests call DeltaEngine.Rendering2D.Graphs.GraphLine.AddValue(System.Single)
[Test, CloseAfterFirstFrame]
public void AddValueAddsToTheEnd()
{
    GraphLine line = CreateLineWithTwoPoints();
    line.AddValue(0.4f, 4.0f);
    Assert.AreEqual(new Vector2D(1.0f, 4.0f), line.points[2]);
    line.AddValue(3.0f);
    Assert.AreEqual(new Vector2D(2.0f, 3.0f), line.points[3]);
}
See Also