ILNumerics Ultimate VSILMathcart2pol Method (InArrayDouble, InArrayDouble, InArrayDouble, OutArrayDouble, OutArrayDouble)ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Transform scalar coordinates into polar (cylindrical) coordinates

[ILNumerics Computing Engine]

Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.3.0.0 (5.3.7131.2749)
Syntax

public static RetArray<double> cart2pol(
	InArray<double> X,
	InArray<double> Y,
	InArray<double> Z,
	OutArray<double> Radius = null,
	OutArray<double> outZ = null
)

Parameters

X
Type: ILNumericsInArrayDouble
X coordinates
Y
Type: ILNumericsInArrayDouble
Y coordinates
Z
Type: ILNumericsInArrayDouble
Z coordinates (height). Can be null if outZ is not requested.
Radius (Optional)
Type: ILNumericsOutArrayDouble
[Optional] Output: radius. Default: (null) do not compute.
outZ (Optional)
Type: ILNumericsOutArrayDouble
[Optional] Output: Copy of Z. Default: (null) do not return.

Return Value

Type: RetArrayDouble
Angles. Radius and Z values are returned as output parameters if requested on entry (i.e.: not null).
Remarks

X, Y, and Z must be the same size or broadcastable to each other. Polar coordinate arrays returned are of the same size as the broadcasted size of the input arrays.

If outZ is requested it will have the same values as Z and the same broadcasted size of the output.

[ILNumerics Computing Engine]

See Also

Reference