http://www.emgu.com
Calculates either magnitude, angle, or both of every 2d vector (x(I),y(I)): magnitude(I)=sqrt( x(I)2+y(I)2 ), angle(I)=atan( y(I)/x(I) ) The angles are calculated with ~0.1 degree accuracy. For (0,0) point the angle is set to 0

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

Syntax

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

Parameters

x
Type: System..::..IntPtr
The array of x-coordinates
y
Type: System..::..IntPtr
The array of y-coordinates
magnitude
Type: System..::..IntPtr
The destination array of magnitudes, may be set to IntPtr.Zero if it is not needed
angle
Type: System..::..IntPtr
The destination array of angles, may be set to IntPtr.Zero if it is not needed. The angles are measured in radians (0..2?) or in degrees (0..360?).
angleInDegrees
Type: System..::..Boolean
The flag indicating whether the angles are measured in radians or in degrees

See Also