ILNumerics Ultimate VS

ILMathsphere2cart Method (InArraySingle, InArraySingle, InArraySingle, OutArraySingle, OutArraySingle)

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: ILNumericsInArraySingle
Radial distance.
theta
Type: ILNumericsInArraySingle
Polar angle.
phi
Type: ILNumericsInArraySingle
Azimuthal angle.
Y (Optional)
Type: ILNumericsOutArraySingle
[Optional] Output: Y coordinates. Default: (null) do not compute.
Z (Optional)
Type: ILNumericsOutArraySingle
[Optional] Output: Z coordinates. Default: (null) do not compute.

Return Value

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