mirror of
				https://github.com/t-affeldt/regional_weather.git
				synced 2025-11-04 01:55:26 +01:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 9ecf5b6520 | |||
| caeff69f27 | 
@@ -14,6 +14,10 @@ end
 | 
			
		||||
 | 
			
		||||
-- maps range of 0 to 1 to any other range
 | 
			
		||||
local function map_range(val, low, high)
 | 
			
		||||
-- NALC modif
 | 
			
		||||
--	local cal_val = math.min(math.max(val, 0), 1)
 | 
			
		||||
--	local range = high - low
 | 
			
		||||
--	return low + (cal_val * range)
 | 
			
		||||
	return val * (high - low) + low
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user