Learn R Programming

BayesBD (version 1.2)

rectToPolar: Simulate binary intensity images

Description

Utility function to convert rectangular (Euclidean) coordinates to polar coordinates.

Usage

rectToPolar(x,y)

Arguments

x

x-axis in rectangular coords

y

y-axis in rectangular coords

Examples

Run this code
# NOT RUN {
x = runif(100,-1,1)
y = runif(100,-1,1)
polar_coords = rectToPolar(x,y)
# }

Run the code above in your browser using DataLab