sph2cart: Convert Spherical to Cartesian Coordinates

View source: R/sph2cart.R

sph2cartR Documentation

Convert Spherical to Cartesian Coordinates

Description

This function converts spherical to Cartesian coordinates.

Usage

sph2cart(df)

Arguments

df

A data frame with columns named r, theta and phi with the radius and angles (in spherical coordinates) to be converted to Cartesian coordinates.

Value

A data frame with named columns containing the converted coordinates.

Note

Cobbled together from similar functions in other packages.

Author(s)

Bryan A. Hanson, DePauw University. hanson@depauw.edu


HiveR documentation built on Sept. 12, 2024, 7:25 a.m.