cartesian2polar: Cartesian to polar coordinate conversion.

cartesian2polarR Documentation

Cartesian to polar coordinate conversion.

Description

Cartesian to polar coordinate conversion.

Usage

cartesian2polar(x, y = NULL)

Arguments

x

vector of x coordinates (or a vector of length 2 holding x, y, or a matrix of two columns holding x and y coordinates)

y

vector y coordinates

Value

A matrix of the r and phi polar coordinates in columns.

Author(s)

Tomas Sieger

See Also

cartesian2spherical, polar2cartesian

Examples

cartesian2polar(0, 0)
cartesian2polar(1, 2)
cartesian2polar(c(1, 2))
cartesian2polar(cbind(1:10,1:10))

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.