Description Usage Arguments Value Author(s) See Also Examples
View source: R/polar_to_cartesian.R
Convert from polar to cartesian coordinates.
1 | 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.
1 2 3 4 5 6 7 8 | #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.