Skip to contents

Convert Cartesian coordinates to spherical coordinates

Usage

cartesian_to_spherical(
  x,
  y,
  z,
  convention = c("azimuth_colatitude", "azimuth_elevation")
)

Arguments

x, y, z

Cartesian coordinates.

convention

Output convention for phi.

Value

A tibble with theta, phi and radius.

See also