Polar and Cartesian Coordinates
Converts a point given by distance r and angle θ into x and y.
x = r cos θ y = r sin θ
To go back: r = √(x² + y²), θ = atan2(y, x).
Circles, spirals and flower shapes are easy to draw in polar form.
Calculator
Change a value and the result and picture update instantly.
Result
x
y
Animated picture
The picture follows your values. Some points and shapes can be dragged.
Use in game development
Spread bullets in all directions, arrange items in a ring or make spiral motion.
Code example (JavaScript)
for (let i = 0; i < n; i++) { const t = i / n * 2 * Math.PI; bullets.push({ vx: Math.cos(t) * s, vy: Math.sin(t) * s }); }
What the symbols mean
| Symbol | Meaning |
|---|---|
r | Distance r |
deg | Angle θ (°) |
x | x |
y | y |
More formulas in this category
Frequently asked questions
- What is the formula for Polar and Cartesian Coordinates?
- The formula for Polar and Cartesian Coordinates is x = r cos θ y = r sin θ. Converts a point given by distance r and angle θ into x and y.
Math Formula Quiz Coordinate Geometry
Sources
Checked: 2026-11-29