Cartesian To Polar node

Access: Nodes > Math > Cartesian To Polar

Converts a 2D Cartesian coordinate (X, Y) to polar form, to facilitate wrapping textures in circles (such as impact ripples or tree growth rings). Outputs radius in Red and polar angle in Green.

Input (X, Y) Output (RGBA)
X=1.0, Y=0.0 1.0, 0.0, 0.0, 1.0
X=0.0, Y=1.0 1.0, 1.5708, 0.0, 1.0
X=0.0, Y=0.0 0.0, 0.0, 0.0, 1.0

Cartesian To Polar node inputs

X

The horizontal Cartesian coordinate.

Y The vertical Cartesian coordinate.

Cartesian To Polar node outputs

Output

Vector containing radial distance in Red and polar angle in Green (range −π … +π). Blue is 0 and Alpha is 1.