function Polar(x, y) { return { angle: Math.atan2(y, x), radius: Math.sqrt(x*x + y*y) }; }