ILNumerics - Technical Application Development
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Array with the radius values.Theta and Phi are returned on request (i.e.: if not null on entry).
The input parameters X, Y and Z
must be of the same size or broadcasting compatible. All arrays returned are of the broadcasted size
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: RetArraySingleArray with the radius values.Theta and Phi are returned on request (i.e.: if not null on entry).
Remarks
[ILNumerics Computing Engine]
See Also