예제 #1
0
        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);
        }
예제 #2
0
 /// <summary>
 /// calculates the brake
 /// </summary>
 public Brake()
 {
     _actualCalculation = new BrakeOutput();
     NormalBrakeMoment  = 100;
     BrakeBalance       = new MathHelper.Ratio(0.5, 0.5);
 }