Example #1
0
        public void RandomFunction4dTest()
        {
            var    f      = Formulae.RandomWindPattern();
            double answer = f(63, 35, TimeSpan.FromMilliseconds(100));

            Assert.AreNotEqual(0.0001, answer); //I mean, statistically...
        }
Example #2
0
 float WindStrength;                     //meters per second
 public WeatherComponent() : base(true, false, false, false)
 {
     WindDirection = EnumUtils.RandomEnumValue <Direction.Types>();
     WindStrength  = Calculate.PercentValue() / 10.01f; //arbitrary?
     Fxyt          = Formulae.RandomWindPattern();      //todo... this, but better
 }