Function cartToPolar

  • Parameters

    • x: Mat

      array of x-coordinates; this must be a single-precision or double-precision floating-point array.

    • y: Mat

      array of y-coordinates, that must have the same size and same type as x.

    • magnitude: Mat

      output array of magnitudes of the same size and type as x.

    • angle: Mat

      output array of angles that has the same size and type as x; the angles are measured in radians (from 0 to 2*Pi) or in degrees (0 to 360 degrees).

    • Optional angleInDegrees: boolean

      a flag, indicating whether the angles are measured in radians (which is by default), or in degrees. TODO Check binding magnitude, angle was missing

    Returns {
        angle: Mat;
        magnitude: Mat;
    }