public void InInverse_InputBelowRange_ReturnsOrigin() { Ease ease = new Quintic(); float y = -0.6f; float expected = 0; float actual = ease.InInverse(y); Assert.AreEqual(expected, actual, 0.001f); }
public void InInverse_InputInRange_ReturnsExpectedValue() { Ease ease = new Quintic(); float y = 0.6f; float expected = 0.9029f; float actual = ease.InInverse(y); Assert.AreEqual(expected, actual, 0.001f); }
public void InInverse_InputAboveRange_ReturnsDestination() { Ease ease = new Quintic(); float y = 1.6f; float expected = ease.Scale.X; float actual = ease.InInverse(y); Assert.AreEqual(expected, actual, 0.001f); }
public void InInverse_ChangedScaleInputBelowRange_ReturnsOrigin() { Vector scale = new Vector(4, 6); Ease ease = new Quintic(scale); float y = -1.1f; float expected = 0; float actual = ease.InInverse(y); Assert.AreEqual(expected, actual, 0.001f); }
public void InInverse_ChangedScaleInputInRange_ReturnsExpectedValue() { Vector scale = new Vector(4, 6); Ease ease = new Quintic(scale); float y = 2.5f; float expected = 3.358f; float actual = ease.InInverse(y); Assert.AreEqual(expected, actual, 0.001f); }
public void InInverse_ChangedScaleInputAboveRange_ReturnsDestination() { Vector scale = new Vector(4, 6); Ease ease = new Quintic(scale); float y = 6.1f; float expected = ease.Scale.X; float actual = ease.InInverse(y); Assert.AreEqual(expected, actual, 0.001f); }