cartesian.to.polar: Convert Cartesian coordinates to polar. Returns a dataframe...

Description Usage Arguments Examples

Description

Convert Cartesian coordinates to polar. Returns a dataframe of two columns named r and theta. This always returns a theta between -pi/2 and pi/2. Note that polar.to.cartesian may not return the starting x, y submitted to cartesian.to.polar due to problems with signs. It will work if theta is kept positive (ie, quadrant 1).

Usage

1

Arguments

x

Coordinates.

y

input vector of y coordinates (same length as x)

Examples

1
2
3
## Not run: 
cartesian.to.polar(2,4)
## End(Not run)

forestgeo/ctfs documentation built on May 3, 2019, 6:44 p.m.