spherical2cartesian | R Documentation |
spherical2cartesian
provides spherical to
Cartesian coordinate conversion.
spherical2cartesian(r,
theta = NULL, phi = NULL)
r |
a vector of radii (or a vector of length 3 holding |
theta |
a vector of inclinations |
phi |
a vector of azimuths |
A matrix with x
, y
, and z
Cartesian coordinates.
Tomas Sieger
cartesian2spherical
spherical2cartesian(1, 0, pi / 2)
spherical2cartesian(1, pi, pi / 4)
spherical2cartesian(c(1, pi, pi / 4))
spherical2cartesian(cbind(1,2,1:10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.