R = sqrt(x * x + y * y) ,
x and y - horizontal and vertical distances from the origin.
r - the distance from the origin to the point.
q - the angle measured from the positive x axis to the point.
t - angle (in degrees).