Method SphericalToCartesian
SphericalToCartesian(float, float, float)
Converts spherical coordinates to cartesian coordinates.
Declaration
public static Vector3 SphericalToCartesian(float azRad, float elevRad, float r)
Parameters
| Type | Name | Description |
|---|---|---|
| float | azRad | The azimuth angle, in radians. 0 corresonds to the Z+ axis (forward). |
| float | elevRad | The elevation angle, in radians. 0 corresonds to the XZ plane (floor). |
| float | r | The radial distance, in meters. |
Returns
| Type | Description |
|---|---|
| Vector3 | The cartesian coordinates, in meters. |
Remarks
Positive values of azimuth turn clockwise, from Z+ to X+ Positive values of elevation are above the floor, towards Y+.