def interpolateLinear(
		y1, #
		y2, #
		x # weighting [0..1]. 0 would be 100 % y1, 1 would be 100 % y2
):
	""" 
	simple linear interpolation between two variables 
	@param y1 
	@param y2
	@param x weighting [0..1]: 0 would be 100 % y1, 1 would be 100 % y2
	@return the interpolated value
	"""
	return y1 * (1.0 - x) + y2 * x