polarToCart function

(Mat, Mat) polarToCart(
  1. InputArray magnitude,
  2. InputArray angle, {
  3. OutputArray? x,
  4. OutputArray? y,
  5. bool angleInDegrees = false,
})

PolatToCart calculates x and y coordinates of 2D vectors from their magnitude and angle.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga581ff9d44201de2dd1b40a50db93d665

Implementation

(Mat x, Mat y) polarToCart(
  InputArray magnitude,
  InputArray angle, {
  OutputArray? x,
  OutputArray? y,
  bool angleInDegrees = false,
}) {
  x ??= Mat.empty();
  y ??= Mat.empty();
  cvRun(() => ccore.Mat_PolarToCart(magnitude.ref, angle.ref, x!.ref, y!.ref, angleInDegrees));
  return (x, y);
}