sphere.cart.to.sphere.spherical: Convert from Cartesian to spherical coordinates

Description Usage Arguments Details Value Author(s)

View source: R/geometry.R

Description

Convert locations on the surface of a sphere in cartesian (X, Y, Z) coordinates to spherical (phi, lambda) coordinates.

Usage

1

Arguments

P

locations of points on sphere as N-by-3 matrix with labelled columns "X", "Y" and "Z"

R

radius of sphere

Details

It is assumed that all points are lying on the surface of a sphere of radius R.

Value

N-by-2 Matrix with columns ("phi" and "lambda") of locations of points in spherical coordinates

Author(s)

David Sterratt


retistruct documentation built on April 4, 2020, 5:08 p.m.