Example #1
0
 public void Test_Default()
 {
     VerticalProperty property = new VerticalProperty();
     Assert.AreEqual(property.CalculateFactor(0), 0);
     Assert.AreEqual(property.CalculateFactor(7), 3);
     Assert.AreEqual(property.CalculateFactor(21), 9);
     Assert.AreEqual(property.CalculateFactor(70), 30);
     Assert.AreEqual(property.CalculateFactor(90), 30);
 }
Example #2
0
 public void Test_half10()
 {
     VerticalProperty property = new VerticalProperty(10);
     Assert.AreEqual(property.CalculateFactor(0), 0);
     Assert.AreEqual(property.CalculateFactor(7), 2.1);
     Assert.AreEqual(property.CalculateFactor(10), 3);
     Assert.AreEqual(property.CalculateFactor(30), 9);
     Assert.AreEqual(property.CalculateFactor(90), 27);
 }
Example #3
0
 public double TiltFactor(VerticalProperty property = null)
 {
     property = property ?? VerticalProperty.DefaultProperty;
     return property.CalculateFactor(TiltAngle);
 }
Example #4
0
 public double TiltFactor(VerticalProperty property = null)
 {
     property = property ?? VerticalProperty.DefaultProperty;
     return(property.CalculateFactor(TiltAngle));
 }