cart2pol: Convert Cartesian Coordinates to Polar Coordinates

View source: R/saccades.R

cart2polR Documentation

Convert Cartesian Coordinates to Polar Coordinates

Description

This function converts Cartesian coordinates (x, y) to polar coordinates (rho, theta).

Usage

cart2pol(x, y)

Arguments

x

A numeric vector representing the x-coordinates.

y

A numeric vector representing the y-coordinates.

Value

A matrix with two columns, where the first column is rho (the radial coordinate) and the second column is theta (the angular coordinate).

Examples

cart2pol(c(1, 2), c(2, 2))

bbuchsbaum/eyesim documentation built on May 9, 2023, 3:29 a.m.