polar

(method of vector3d)

cartesian to spherical coordinates

Syntax

[theta,rho,r] = polar(v)

Input

v

vector3d

Output

theta

polar angle

rho

azimuthal angle

r

radius