sph2car: Spherical to Cartesian coordinate conversion

View source: R/sph2car.R

sph2carR Documentation

Spherical to Cartesian coordinate conversion

Description

Convert 3D spherical to Cartesian coordinates

Usage

sph2car(x)

Arguments

x

3-element or n-by-3 matrix representing the spherical components (r,theta,phi) of n three-dimensional vectors. Here, theta=0...pi is the polar angle measured from the north pole and phi=0...2*pi is the azimuth measured positively from the x-axis (ISO 80000-2:2019 physics convention).

Value

Returns a 3-element vector or a n-by-3 element matrix representing the Cartesian coordinates (x,y,z)

Author(s)

Danail Obreschkow

See Also

car2sph


obreschkow/cooltools documentation built on Nov. 16, 2024, 2:46 a.m.