local function T(T)return math.atan2(T.y,T.x),T.magnitude end local function E(T)return((T+math.pi)/(2*math.pi))*360 end


local function toPolar(v)
	return math.atan2(v.y, v.x), v.magnitude;
end

local function radToDeg(x)
	return ((x + math.pi) / (2 * math.pi)) * 360;
end
