Advertisement

Cylindrical coordinates calculator

Choose a direction of conversion. Use consistent coordinate units; angle selectors accept degrees, radians and turns.

Calculator

Cartesian x
3.00000000
Cartesian y
4.00000000
Cartesian z
12.00000000
Radial distance r
5.00000000
Azimuth theta
53.1301
Angle convention
Azimuth in [0, 360) degrees

Advertisement

How this calculator works

Cartesian coordinates measure perpendicular offsets. The radial coordinate measures distance from the origin in the xy plane. Azimuth turns anticlockwise from positive x when viewed from positive z. A nonnegative radius is required. On the axis, azimuth is omitted because no direction is singled out.

Formula

x = r cos(theta), y = r sin(theta); r = hypot(x, y), theta = atan2(y, x) reduced to [0, 2pi). The z coordinate is unchanged.

Worked example

Cartesian (3, 4, 12) becomes (r, theta, z) = (5, 53.130102 degrees, 12). The height does not contribute to the cylindrical radius.

Advertisement

Frequently asked questions

Why use atan2 instead of arctangent?

atan2 uses both coordinate signs to place the angle in the correct quadrant and handles vertical directions.

What happens at the origin?

The radius is zero. Azimuth is undefined and is omitted.

Are these latitude and longitude?

No. These are geometric coordinates. Convert geographic locations before applying this flat coordinate system.

Sources

Advertisement