local function x(x)return math.atan2(x.y,x.x),x.magnitude end local function k(x)return((x+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
