Exemplo n.º 1
0
    private void AssertExactAt(float t)
    {
        float expected = curveRef.Evaluate(t);
        float actual   = curveNat.Evaluate(t);

        Assert.That(actual, Is.EqualTo(expected), $"Expected value {expected} at time {t} but got {actual}.");
    }
Exemplo n.º 2
0
 public void Execute(int index)
 {
     Results[index] = Curve.Evaluate(index / (float)Results.Length);
 }