R/rotation.R

`rotation` <-
function(coords,angle)
{
radian <- (angle * pi)/180

x <- c(cos(radian),- sin(radian))
y <- c(sin(radian),cos(radian))
nlecoord=coords %*% cbind(x,y)

return(nlecoord)
  }

Try the GeoXp package in your browser

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

GeoXp documentation built on May 29, 2017, 11:25 a.m.