public void InOut_InputAboveRange_ReturnsDestination() { Ease ease = new Sine(); float x = 1.5f; float expected = ease.Scale.Y; float actual = ease.InOut(x); Assert.AreEqual(expected, actual, 0.001f); }
public void InOut_InputBelowRange_ReturnsOrigin() { Ease ease = new Sine(); float x = -0.5f; float expected = 0; float actual = ease.InOut(x); Assert.AreEqual(expected, actual, 0.001f); }
public void InOut_InputInRange_ReturnsExpectedValue() { Ease ease = new Sine(); float x = 0.6f; float expected = 0.6545f; float actual = ease.InOut(x); Assert.AreEqual(expected, actual, 0.001f); }
public void InOut_ChangedScaleInputAboveRange_ReturnsDestination() { Vector scale = new Vector(4, 6); Ease ease = new Sine(scale); float x = 11.1f; float expected = ease.Scale.Y; float actual = ease.InOut(x); Assert.AreEqual(expected, actual, 0.001f); }
public void InOut_ChangedScaleInputBelowRange_ReturnsOrigin() { Vector scale = new Vector(4, 6); Ease ease = new Sine(scale); float x = -1.1f; float expected = 0; float actual = ease.InOut(x); Assert.AreEqual(expected, actual, 0.001f); }
public void InOut_ChangedScaleInputInRange_ReturnsExpectedValue() { Vector scale = new Vector(4, 6); Ease ease = new Sine(scale); float x = 2.5f; float expected = 4.148f; float actual = ease.InOut(x); Assert.AreEqual(expected, actual, 0.001f); }