rotate_xy: Rotate a matrix of x and y coordinates by a radian

View source: R/rotate.R

rotate_xyR Documentation

Rotate a matrix of x and y coordinates by a radian

Description

Rotate a matrix of x and y coordinates by a radian

Usage

rotate_xy(xy_mat, rad, direction = 1)

Arguments

xy_mat

A two column matrix with x and y coordinates.

rad

Numeric. Rotation angle in radian.

direction

Numeric. Rotation direction, 1 for clockwise -1 for counter-clockwise.


egor documentation built on March 31, 2023, 11:33 p.m.