ILNumerics Ultimate VS

ILMathsphere2cart Method (InArrayDouble, InArrayDouble, InArrayDouble, OutArrayDouble, OutArrayDouble)

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<double> sphere2cart(
	InArray<double> radius,
	InArray<double> theta,
	InArray<double> phi,
	OutArray<double> Y = null,
	OutArray<double> Z = null
)

Parameters

radius
Type: ILNumericsInArrayDouble
Radial distance.
theta
Type: ILNumericsInArrayDouble
Polar angle.
phi
Type: ILNumericsInArrayDouble
Azimuthal angle.
Y (Optional)
Type: ILNumericsOutArrayDouble
[Optional] Output: Y coordinates. Default: (null) do not compute.
Z (Optional)
Type: ILNumericsOutArrayDouble
[Optional] Output: Z coordinates. Default: (null) do not compute.

Return Value

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