cv.polarToCart - MATLAB File Help |
Calculates x and y coordinates of 2D vectors from their magnitude and angle
[x, y] = cv.polarToCart(mag, ang)
[...] = cv.polarToCart(..., 'OptionName',optionValue, ...)
ang
.ang
.ang
.The function cv.polarToCart calculates the Cartesian coordinates of each 2D vector represented by the corresponding elements of magnitude and angle:
x(I) = magnitude(I) * cos(angle(I))
y(I) = magnitude(I) * sin(angle(I))
The relative accuracy of the estimated coordinates is about 1e-6.