PO_matlab
mysph2cart.m File Reference

Converts spherical coordinates to Cartesian coordinates. More...

Functions

function mysph2cart (in r, in theta, in phi)

Detailed Description

Converts spherical coordinates to Cartesian coordinates.

This function transforms spherical coordinates (r, theta, phi) into Cartesian coordinates (x, y, z).

Parameters
rRadial distance(s) from the origin [m]
thetaElevation angle(s) from z-axis [rad]
phiAzimuthal angle(s) from x-axis [rad]
Return values
xX-coordinate(s)
yY-coordinate(s)
zZ-coordinate(s)

Function Documentation

◆ mysph2cart()

function mysph2cart ( in r,
in theta,
in phi )
Here is the call graph for this function:
Here is the caller graph for this function: