Codebox Operators poltocar

poltocar

Convert polar to cartesian coordinates

poltocar(radius, angle): [out1, out2]

Arguments:

Arguments

NameTypeDefaultDescription
radiusnumber

The distance portion of a polar coordinate pair to be converted into a Cartesian coordinate pair consisting of real and imaginary values. When used in an audio context, the value represents magnitude (amplitude) portion of a polar coordinate pair to be converted into a cartesian (real/imaginary) coordinate pair.

anglenumber

The angle portion of a polar coordinate pair to be converted into a Cartesian coordinate pair consisting of real and imaginary values. When used in an audio context, the value represents the phase portion of a polar coordinate pair to be converted into a cartesian (real/imaginary) coordinate pair.

Returns

NameTypeDescription
out1number

The real portion of a Cartesian coordinate pair.

out2number

The imaginary portion of a Cartesian coordinate pair.