View source: R/linear-spherical-spline.R
| Spherical_to_Cartesian | R Documentation |
This function converts spherical coordinates (theta, phi) to Cartesian coordinates.
Spherical_to_Cartesian(theta_phi)
theta_phi |
A matrix where each row contains the spherical coordinates (theta, phi) of a point. |
A matrix where each row contains the Cartesian coordinates (x, y, z) of a point.
theta_phi <- matrix(c(pi/4, pi/3, pi/6, pi/4), ncol = 2, byrow = TRUE)
Spherical_to_Cartesian(theta_phi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.