public void Testratio() { Ratio r = new MathHelper.Ratio(0.5, 0.5); double firstV = r.FirstValue; double secondeV = r.SecondValue; Assert.AreEqual(0.5f, firstV); Assert.AreEqual(0.5f, secondeV); }
/// <summary> /// calculates the brake /// </summary> public Brake() { _actualCalculation = new BrakeOutput(); NormalBrakeMoment = 100; BrakeBalance = new MathHelper.Ratio(0.5, 0.5); }