It sounds like you're wanting to convert the rectangular coordinates into polar coordinates, or at least to find the angle that you would have used for polar coordinates. To learn about how to do that conversion, try here.