Learn R Programming

SpatialGraph (version 1.0-4)

rotation: Rotate 2D points

Description

rotate points, counterclockwise for positive angles, and clockwise for negative ones

Usage

rotation(coords, radian)

Value

a 2-col matrix with the points rotated around [0,0]

Arguments

coords

2-col matrix of [x,y] coordinates

radian

rotation angle