rotate90: Rotate 2D matrix clockwise in 90 degree steps.

Description Usage Arguments

View source: R/rotate3d.R

Description

Rotate 2D matrix clockwise in 90 degree steps.

Usage

1
rotate90(mtx, times = 1L, clockwise = TRUE)

Arguments

mtx

a 2D matrix

times

integer, how often to rotate in 90 degree steps. Example: pass '3L' to rotate '270' degrees.

clockwise

logical, whether to rotate clockwise.


neuroconductor/freesurferformats documentation built on May 20, 2021, 3:15 p.m.