ILNumerics Ultimate VS

ILMathcart2sphere Method (InArrayDouble, InArrayDouble, InArrayDouble, OutArrayDouble, OutArrayDouble)

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<double> cart2sphere(
	InArray<double> X,
	InArray<double> Y,
	InArray<double> Z,
	OutArray<double> Theta = null,
	OutArray<double> Phi = null
)

Parameters

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

Return Value

Type: RetArrayDouble
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