function Spring.new(t,K)local s=t or 0 K=K or os.clock return setmetatable({_clock=K,_time0=K();_position0=s,_velocity0=0*s;_target=s,_damper=1,_speed=1},Spring)end

function Spring.new(initial, clock)
	local target = initial or 0
	clock = clock or os.clock
	return setmetatable({
		_clock = clock;
		_time0 = clock();
		_position0 = target;
		_velocity0 = 0*target;
		_target = target;
		_damper = 1;
		_speed = 1;
	}, Spring)
end
