R/cartesian2polar2D.R

Defines functions cartesian2polar2D

Documented in cartesian2polar2D

cartesian2polar2D <-
function(x,orig=c(0,0)){
				x	=x-outer(rep(1,dim(x)[1]),orig)
				y	=x
				y[,2]	=angle.positive(atan2(x[,2],x[,1]))
				y[,1]	=sqrt(x[,2]*x[,2]+x[,1]*x[,1])		
				return(y)
							}

Try the etasFLP package in your browser

Any scripts or data that you put into this service are public.

etasFLP documentation built on May 1, 2019, 6:48 p.m.