car2pol: Cartesian to polar/cylindrical coordinate conversion

View source: R/car2pol.R

car2polR Documentation

Cartesian to polar/cylindrical coordinate conversion

Description

Convert 2D/3D Cartesian to polar/cylindrical coordinates

Usage

car2pol(x)

Arguments

x

2/3-vector or n-by-2/3 matrix representing the Cartesian components x,y,(z) of n two/three-dimensional vectors

Value

Returns a 2/3-vector or a n-by-2/3 matrix representing the polar/cylindrical coordinates r,phi,(z), where phi=0...2*pi is the azimuth measured positively from the x-axis.

Author(s)

Danail Obreschkow

See Also

pol2car


obreschkow/cooltools documentation built on Nov. 16, 2024, 2:46 a.m.