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

View source: R/geometry.R

sphere.spherical.to.sphere.cartR Documentation

Convert from spherical to Cartesian coordinates

Description

Convert locations of points on sphere in spherical coordinates to points in 3D cartesian space

Usage

sphere.spherical.to.sphere.cart(Ps, R = 1)

Arguments

Ps

N-by-2 matrix with columns containing latitudes (phi) and longitudes (lambda) of N points

R

radius of sphere

Value

An N-by-3 matrix in which each row is the cartesian (X, Y, Z) coordinates of each point

Author(s)

David Sterratt


retistruct documentation built on April 3, 2025, 5:58 p.m.