from.Sphere {SphereOptimize} | R Documentation |
Converting spherical coordinates to Cartesian coordinates
Description
The function from.Sphere convert a list of angles representing a point on a unit sphere to the corresponding Cartesian coordinates.
Usage
from.Sphere(theta)
Arguments
theta |
A list of angles. The first item should be between 0 to pi, and the following items should be between 0 to 2*pi. |
Value
A vector of the corresponding Cartesian coordinates.
Examples
from.Sphere(c(pi/3, pi/4, pi/5))
[Package SphereOptimize version 0.1.1 Index]