sph2cart {geometry} | R Documentation |
Transform spherical coordinates to Cartesian coordinates
Description
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
).
Usage
sph2cart(theta, phi = NULL, r = NULL)
Arguments
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
|
Author(s)
Kai Habel
David Sterratt
See Also
[Package geometry version 0.4.7 Index]