Search for a tool
2D Coordinates Systems

Tool to achieve coordinates system changes in the 2d-plane (cartesian, polar, etc.). These are mathematical operations representing the same elements but in different referentials.

Results

2D Coordinates Systems -

Tag(s) : Geometry

Share dCode and you

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best 2D Coordinates Systems tool. Thank you.

# 2D Coordinates Systems

## Change of 2D Coordinates (plane)

### Change of 3D Coordinates (space)

Tool to achieve coordinates system changes in the 2d-plane (cartesian, polar, etc.). These are mathematical operations representing the same elements but in different referentials.

### How to convert cartesian coordinates to polar?

The base / referential change using cartesian coordinates $(x, y)$ to another referential using polar coordinates $(r, \theta)$ obey the equations: $$r = \sqrt{x^2 + y^2} \\ \theta = 2\arctan\left(\frac y{x+ \sqrt{x^2+y^2}} \right)$$ with $\arctan$ the reciprocal of the function $\tan$ (tangent).

NB: the value of $\theta$ calculated here is included in the inverval $] -\pi, \pi]$ (to have it in the interval $] 0, 2\pi]$ add $2 \pi$ if the value of the angle is negative)

If $r = 0$ then the angle can be defined by any real number

Example: The point of the plane in position $(1,1)$ in Cartesian coordinates is defined by the polar coordinates $r = \sqrt {2}$ and $\theta = \pi/4$

### How to convert polar coordinates to cartesian?

The base / referential change from polar coordinates $(r, \theta)$ to another referential using cartesian coordinates $(x, y)$ follows the equations: $$x = r \cos (\theta) \\ y = r \sin (\theta)$$

with $r$ a positive real number and $\theta$$an angle defined between$ ] -\pi, \pi] \$

## Source code

dCode retains ownership of the source code of the script 2D Coordinates Systems online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online 2D Coordinates Systems script for offline use on PC, iPhone or Android, ask for price quote on contact page !