toPolar: Converts cartesian (x, y) into polar (angle, distance)...

Description Usage Arguments Value

View source: R/math.R

Description

Converts cartesian coordinates (x, y) into polar (angle, distance) ones, assuming (0, 0) as origin of axes and, incidentally, the position of tree base

Usage

1
toPolar(x, y)

Arguments

x

Abscissa coordinate

y

Ordinate coordinate

Value

A vector holding angle in degrees and distance in the same unit as x and y


treecm documentation built on May 1, 2019, 9:30 p.m.