TIEVisionMath.cartToPolar
Declaration
procedure cartToPolar(x: TIEVisionImage; y: TIEVisionImage; magnitude: TIEVisionImage; angle: TIEVisionImage; angleInDegrees: bool32 = false); safecall;
Description
Calculate the magnitude and angle of 2D vectors.
| Parameter | Description |
| x | Array of x-coordinates. This must be a single-precision or double-precision floating-point array |
| y | Array of y-coordinates that must have the same size and same type as x |
| magnitude | Destination array of magnitudes of the same size and type as x |
| angle | Destination 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) |
| angleInDegrees | Flag indicating whether the angles are measured in radians, which is the default mode, or in degrees |