sph2cart | R Documentation |
The inputs theta
, phi
, and r
must be the same
shape, or scalar. If called with a single matrix argument then
each row of S
represents the spherical coordinate
(theta
, phi
, r
).
sph2cart(theta, phi = NULL, r = NULL)
theta |
describes the angle relative to the positive x-axis. |
phi |
is the angle relative to the xy-plane. |
r |
is the distance to the origin If only a single return argument is requested then return a matrix
|
Kai Habel
David Sterratt
cart2sph
, pol2cart
, cart2pol
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.