Converting Between Polar and Cartesian Coordinates
The two polar coordinates r and θ can be converted to the two Cartesian coordinates x and y by using the trigonometric functions sine and cosine:
The Cartesian coordinates x and y can be converted to polar coordinates r and θ with r ≥ 0 and θ in the interval (−π, π] by:
- (as in the Pythagorean theorem), and
- (where atan2 is a common variation on the arctangent function that takes into account the quadrant)
or
In degrees this would be from −180° to 180°. If desired an angle in the range [0, 2π) may be obtained by adding 2π to the value if it is negative. The zero angle at the origin where x and y are both zero is just a convenient value that is often chosen.
The value of θ above is the principal value of the complex number function arg applied to x+iy, except that arg does not define a value at the origin.
Read more about this topic: Polar Coordinate System
Famous quotes containing the words converting and/or polar:
“A way of certifying experience, taking photographs is also a way of refusing itby limiting experience to a search for the photogenic, by converting experience into an image, a souvenir. Travel becomes a strategy for accumulating photographs.”
—Susan Sontag (b. 1933)
“In time your relatives will come to accept the idea that a career is as important to you as your family. Of course, in time the polar ice cap will melt.”
—Barbara Dale (b. 1940)