/** * 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)); }
public bool Check(float angleFromEquator, float height, float sunAngleFromZenith) { return(Latitude.ValueBetween(angleFromEquator) && Height.ValueBetween(height) && SunAngleFromZenith.ValueBetween(sunAngleFromZenith)); }