View source: R/polar_to_cartesian.R
polar_to_cartesian | R Documentation |
Convert from polar to cartesian coordinates.
polar_to_cartesian(polar, threads = 1, digits = NULL)
polar |
A |
threads |
An |
digits |
A |
A data.table
with three columns describing the *XYZ* of the cartesian coordinates.
J. Antonio Guzmán Q.
cartesian_to_polar
#Creates a hemisphere of points each 2 degrees zenith <- seq(0, 90, 2) azimuth <- seq(0, 360, 2) hemi <- CJ(zenith, azimuth) hemi$distance <- 1 hemicloud <- polar_to_cartesian(hemi) rgl::plot3d(hemicloud)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.