cart2Polar {MetCirc} | R Documentation

## Calculate polar coordinates from cartesian coordinates

### Description

'cart2Polar' calculates polar coordinates from cartesian coordinates.

### Usage

    cart2Polar(x, y)

### Arguments

`x` | cartesian x coordinate
`y` | cartesian y coordinate

### Details

'cart2Polar' is employed to translate cartesian coordinates into polar coordinates especially in interactive shiny applications when using hovering and clicking features.

### Value

'cart2Polar' returns a list of colar coordinates r and theta

### Author(s)

Thomas Naake, thomasnaake@googlemail.com

### Examples

    x <- 1; y <- 1
    cart2Polar(x, y)

[Package MetCirc version 1.22.0 Index]