spherical_to_cartesian: Convert spherical coordinates to Cartesian coordinates

View source: R/linear-spherical-spline.R

Spherical_to_CartesianR Documentation

Convert spherical coordinates to Cartesian coordinates

Description

This function converts spherical coordinates (theta, phi) to Cartesian coordinates.

Usage

Spherical_to_Cartesian(theta_phi)

Arguments

theta_phi

A matrix where each row contains the spherical coordinates (theta, phi) of a point.

Value

A matrix where each row contains the Cartesian coordinates (x, y, z) of a point.

Examples

theta_phi <- matrix(c(pi/4, pi/3, pi/6, pi/4), ncol = 2, byrow = TRUE)
Spherical_to_Cartesian(theta_phi)

spheresmooth documentation built on May 29, 2024, 3:15 a.m.