ILNumerics Ultimate VS

ILMath.sphere2cart Method (InArray<Single>, InArray<Single>, InArray<Single>, OutArray<Single>, OutArray<Single>)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Transforms spherical coordinates into cartesian 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> sphere2cart(
	InArray<float> radius,
	InArray<float> theta,
	InArray<float> phi,
	OutArray<float> Y = null,
	OutArray<float> Z = null
)

Parameters

radius
Type: ILNumerics.InArray<Single>
Radial distance.
theta
Type: ILNumerics.InArray<Single>
Polar angle.
phi
Type: ILNumerics.InArray<Single>
Azimuthal angle.
Y (Optional)
Type: ILNumerics.OutArray<Single>
[Optional] Output: Y coordinates. Default: (null) do not compute.
Z (Optional)
Type: ILNumerics.OutArray<Single>
[Optional] Output: Z coordinates. Default: (null) do not compute.

Return Value

Type: RetArray<Single>
X coordinates.Y and Z are returned on request.
Remarks

The input parameters radius, theta and phi must be of the same size or be broadcastable to each other. All arrays returned are of the broadcasted size.

[ILNumerics Computing Engine]

See Also

Reference