Houdini 21.0 Nodes APEX nodes

CartesianToSpherical

Converts a 3D cartesian coordinate to its spherical coordinate.

On this page
Since 21.0

Converts a 3D cartesian coordinate to its corresponding spherical coordinate representation. Spherical coordinates are represented as a Vector3 such that:

When the y-coordinate is positive, theta is a positive angle in the range (0, π). Otherwise, theta is a negative angle in the range (0, -π). Phi is always in the range (0, π).

Inputs

cartesian: Vector3

The 3D cartesian coordinate.

Outputs

spherical: Vector3

The converted spherical coordinate.

See also

APEX nodes