cart2polar: cart2polar

cart2polarR Documentation

cart2polar

Description

convert Cartesian coordinates to polar coordinates

Usage

cart2polar(x, y, xm = median(x), ym = median(y))

Arguments

x

the x coordinate in Cartesian

y

the y coordinate in Cartesian

xm

the x coordinate of origin point in polar

ym

the y coordinate of origin point in polar

Value

a list containing r: distance to origin point and t: angle in polar coordinate system


sajuukLyu/ggunchull documentation built on May 22, 2024, 7:37 a.m.