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<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: RetArrayDoubleArray with the radius values.Theta and Phi are returned on request (i.e.: if not null on entry).
Remarks
[ILNumerics Computing Engine]
See Also