polar2cartesian: Polar to Cartesian coordinate conversion.

polar2cartesianR Documentation

Polar to Cartesian coordinate conversion.

Description

polar2cartesian provides polar to Cartesian coordinate conversion.

Usage

polar2cartesian(r, phi = NULL)

Arguments

r

a vector of radii (a or a vector of length 2 holding r, phi, or a matrix of two columns holding r and phi coordinates)

phi

a vector of angles

Value

A matrix of the x and y Cartesian coordinates in columns.

Author(s)

Tomas Sieger

See Also

cartesian2polar

Examples

polar2cartesian(1, 0)
polar2cartesian(1, pi)
polar2cartesian(c(1, pi))
polar2cartesian(cbind(1, seq(0,pi,.1)))

tsieger/tsiMisc documentation built on Dec. 14, 2024, 3:23 p.m.