rotation: Rotate 2D points

rotationR 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]


SpatialGraph documentation built on Sept. 28, 2023, 5:08 p.m.