Polar Coordinates

In polar coordinates, points on a plane are defined by radial distance rr and angular coordinate θ\theta (Figure 2). The radial direction measures the point's distance from the origin, while the angular direction corresponds to the counterclockwise angle from the positive x-axis. These two dimensions together specify any point in the plane.

Source:
Assets 1
Loading...

Figure 1:An interacitve comparison of Cartesian and polar coordinates.

To convert from Cartesian coordinates (x,y)(x, y) to polar coordinates (r,θ)(r, \theta):

[rθ]=[x2+y2atan2(y,x)]\begin{bmatrix}r \\ \theta \end{bmatrix} = \begin{bmatrix} \sqrt{x^2 + y^2} \\ \text{atan2}(y, x) \end{bmatrix}

To convert from polar coordinates (r,θ)(r, \theta) to Cartesian coordinates (x,y)(x, y):

[xy]=r[cos(θ)sin(θ)]\begin{bmatrix}x \\ y \end{bmatrix} = r \cdot \begin{bmatrix} \cos(\theta) \\ \sin(\theta) \end{bmatrix}
Source:
Assets 2
Loading...

Figure 2:Polar coordinate system