sphere.cart.to.sphere.spherical | R Documentation |
Convert locations on the surface of a sphere in cartesian (X, Y, Z) coordinates to spherical (phi, lambda) coordinates.
sphere.cart.to.sphere.spherical(P, R = 1)
P |
locations of points on sphere as N-by-3 matrix with labelled columns "X", "Y" and "Z" |
R |
radius of sphere |
It is assumed that all points are lying on the surface of a sphere of radius R.
N-by-2 Matrix with columns ("phi" and "lambda") of locations of points in spherical coordinates
David Sterratt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.