Cartesian To Spherical

Pure
CartesianToSpherical

Converts a Cartesian vector to spherical coordinates.

Type: Pure (no side effects)
Category: Fortuna|Vector & Transform
Keywords: vector & transform

Inputs

NameTypeDefaultDescription
VectorFVectorVector parameter

Outputs

NameTypeDescription
RadiusfloatRadius output
ThetafloatTheta output
PhifloatPhi output

Example Use Cases

Example 1

Get orbital camera parameters from current position.

Example 2

Determine latitude/longitude of a point on a planet surface.