function class.setPosition(U,a)local q=typeof(a)if q~=U._currentType then parseError("\115\112\114\105\110\103\084\121\112\101\077\105\115\109\097\116\099\104",nil,q,U._currentType)end U._springPositions=unpackType(a,q)U._currentValue=a SpringScheduler.add(U)Dependencies.updateAll(U)end

function class:setPosition(newValue)
	local newType = typeof(newValue)
	if newType ~= self._currentType then
		parseError("springTypeMismatch", nil, newType, self._currentType)
	end

	self._springPositions = unpackType(newValue, newType)
	self._currentValue = newValue
	SpringScheduler.add(self)
	Dependencies.updateAll(self)
end
