Skip to contents

Convert spherical coordinates to Cartesian coordinates

Usage

spherical_to_cartesian(
  theta,
  phi,
  radius = 1,
  convention = c("azimuth_colatitude", "azimuth_elevation")
)

Arguments

theta

Azimuth angle in radians.

phi

Colatitude or elevation angle in radians.

radius

Radius.

convention

Interpretation of phi.

Value

A tibble with x, y and z.

See also