R/rotation.R

rotation <-
function (v, theta) 
{
    v.rot <- numeric(2)
    v.rot[1] <- cos(theta) * v[1] + sin(theta) * v[2]
    v.rot[2] <- -sin(theta) * v[1] + cos(theta) * v[2]
    return(v.rot)
}

Try the alphahull package in your browser

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

alphahull documentation built on June 16, 2022, 5:10 p.m.