﻿OclInvoke.PolarToCart Method
http://www.emgu.com
The function polarToCart computes the cartesian coordinates of each 2D vector represented by the corresponding elements of magnitude and angle. Supports only CV_32F and CV_64F data types.

Namespace: Emgu.CV.OpenCL
Assembly: Emgu.CV.OpenCL (in Emgu.CV.OpenCL.dll) Version: 2.4.10.1935 (2.4.10.1935)

# Syntax

C#
```public static void PolarToCart(
IntPtr magnitude,
IntPtr angle,
IntPtr x,
IntPtr y,
bool angleInDegrees
)```
Visual Basic
```Public Shared Sub PolarToCart (
magnitude As IntPtr,
angle As IntPtr,
x As IntPtr,
y As IntPtr,
angleInDegrees As Boolean
)```
Visual C++
```public:
static void PolarToCart(
IntPtr magnitude,
IntPtr angle,
IntPtr x,
IntPtr y,
bool angleInDegrees
)```
F#
```static member PolarToCart :
magnitude : IntPtr *
angle : IntPtr *
x : IntPtr *
y : IntPtr *
angleInDegrees : bool -> unit
```

#### Parameters

magnitude
Type: System..::..IntPtr
he source floating-point array of magnitudes of 2D vectors. It can be an empty matrix (=Mat()) - in this case the function assumes that all the magnitudes are =1. If it’s not empty, it must have the same size and same type as angle
angle
Type: System..::..IntPtr
The source floating-point array of angles of the 2D vectors
x
Type: System..::..IntPtr
The destination array of x-coordinates of 2D vectors; will have the same size and the same type as angle
y
Type: System..::..IntPtr
The destination array of y-coordinates of 2D vectors; will have the same size and the same type as angle
angleInDegrees
Type: System..::..Boolean
The flag indicating whether the angles are measured in radians, which is default mode, or in degrees