Learn R Programming

HiveR (version 0.2.44)

sph2cart: 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.

References

http://academic.depauw.edu/~hanson/HiveR/HiveR.html