Description Usage Arguments Value Author(s)
Transform a 3D vector constituting a cartesian coordinate set to spherical coordinates
1 |
X |
A numerical vector or matrix whos entries constitute a cartesian coordinate. A vector should have 3 entries and a matrix should have 3 columns. |
deg |
Logical value indicating whether the output should be in randians or degrees. Radian is default. |
rep |
Determine the representation of the spherical coordinates.
If |
unitlength |
Logical values indicating if the points should be returned with unit length.
If TRUE (default) |
A data.frame with 3 columns longitude, latitude and radial distance.
Andreas Dyreborg Christoffersen andreas@math.aau.dk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.