ILNumerics Ultimate VS

ILMathcart2sphere Method (InArraySingle, InArraySingle, InArraySingle, OutArraySingle, OutArraySingle)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Transforms cartesian coordinates into spherical coordinates.

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetArray<float> cart2sphere(
	InArray<float> X,
	InArray<float> Y,
	InArray<float> Z,
	OutArray<float> Theta = null,
	OutArray<float> Phi = null
)

Parameters

X
Type: ILNumericsInArraySingle
X coordinate.
Y
Type: ILNumericsInArraySingle
Y coordinate.
Z
Type: ILNumericsInArraySingle
Z coordinate.
Theta (Optional)
Type: ILNumericsOutArraySingle
[Optional] Output: polar angle. Default: (null) do not compute.
Phi (Optional)
Type: ILNumericsOutArraySingle
[Optional] Output: Azimuthal angle. Default: (null) do not compute.

Return Value

Type: RetArraySingle
Array with the radius values.Theta and Phi are returned on request (i.e.: if not null on entry).
Remarks

The input parameters X, Y and Z must be of the same size or broadcasting compatible. All arrays returned are of the broadcasted size

[ILNumerics Computing Engine]

See Also

Reference