from.Sphere: Converting spherical coordinates to Cartesian coordinates

Description Usage Arguments Value Examples

View source: R/SphereOptimize.R

Description

The function from.Sphere convert a list of angles representing a point on a unit sphere to the corresponding Cartesian coordinates.

Usage

1
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

1
from.Sphere(c(pi/3, pi/4, pi/5))

xieyj17/SphereOptimize documentation built on Sept. 3, 2020, 10:31 p.m.