Esempio n. 1
0
 /**
  * Check that a rule matches terrain properties.
  *
  * @param height Height ration to the height map.
  * @param latitude Latitude cosine
  * @param slope Surface dominant angle cosine.
  */
 public bool Check(float height, float latitude, float longitude, float slope)
 {
     return(Height.ValueBetween(height) && Latitude.ValueBetween(latitude) && Longitude.ValueBetween(longitude) &&
            Slope.ValueBetween(slope));
 }
Esempio n. 2
0
 public bool Check(float angleFromEquator, float height, float sunAngleFromZenith)
 {
     return(Latitude.ValueBetween(angleFromEquator) && Height.ValueBetween(height) && SunAngleFromZenith.ValueBetween(sunAngleFromZenith));
 }