rotate: Roate a (x,y) with an Angle.

Description Usage Arguments Value Examples

View source: R/Geometry.R

Description

Roate a (x,y) with an Angle.

Usage

1
rotate(x, theta, orig = c(0, 0))

Arguments

x

Coordinate (x,y)

theta

An angle (degree)

orig

Pivot of rotation

Value

Rotated (x,y)

Examples

1
2
3
4
5
6
plot(PCS2CCS(a=2), asp=1)
grid()
x=rbind(c(1,1))
for(i in 1:12){
  points(rotate(x, 30*i, orig=c(1,0)))
}

happynotes/RoundAndRound documentation built on Jan. 31, 2020, 12:05 p.m.