cart2pol.Rd
This function converts Cartesian coordinates (x, y) to polar coordinates (rho, theta).
cart2pol(x, y)
A numeric vector representing the x-coordinates.
A numeric vector representing the y-coordinates.
A matrix with two columns, where the first column is rho (the radial coordinate) and the second column is theta (the angular coordinate).
cart2pol(c(1, 2), c(2, 2)) #> rho theta #> [1,] 2.236068 1.1071487 #> [2,] 2.828427 0.7853982