function LinearValue.GetMagnitude(q)local p=0 for t=1,#q._values,1 do local a=q._values[t]p=p+a*a end return math.sqrt(p)end

function LinearValue:GetMagnitude()
	local dot = 0
	for i=1, #self._values do
		local value = self._values[i]
		dot = dot + value*value
	end
	return math.sqrt(dot)
end
