rotation {SpatialGraph}R Documentation

Rotate 2D points

Description

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

Usage

rotation(coords, radian)

Arguments

coords

2-col matrix of [x,y] coordinates

radian

rotation angle

Value

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


[Package SpatialGraph version 1.0-4 Index]