rotate_coordinates {tspmeta}R Documentation

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.


[Package tspmeta version 1.2 Index]