PLECS 3.1 Online Help

Rectangular to polar

Purpose

Convert rectangular coordinates into polar coordinates.

Library

Control / Transformations

Description

pict

This block transforms a signal representing rectangular coordinates [x,y]   into polar coordinates [r,θ]  :

      ∘ -------
r =     x2 + y2
θ =   atan2(x,y)

θ   is calculated in the range - π ≤ θ ≤ π  .