Learn R Programming

tspmeta (version 1.2)

rotate_coordinates: Rotate a matrix of 2D coordinates

Description

Rotate a matrix of 2D coordinates

Usage

rotate_coordinates(coords, angle, center)

Arguments

coords
[matrix] Numeric matrix of 2D coordinates to rotate
angle
[numeric(1)] Angle by which to rotate the coordinates. In radians.
center
[matrix] Center around which to rotate the coordinates.

Value

A matrix of rotated coordinates.