Calculates the inclination angle measured from the positive z‑axis
(the “polar” angle) for each point.
Usage
cartesian_to_theta(x, y, z)
Arguments
- x
numeric vector of x‑coordinates
- y
numeric vector of y‑coordinates
- z
numeric vector of z‑coordinates
Value
numeric vector of polar angles (θ) in radians