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

View source: R/rotate3d.R

rotate90R Documentation

Rotate 2D matrix clockwise in 90 degree steps.

Description

Rotate 2D matrix clockwise in 90 degree steps.

Usage

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.


freesurferformats documentation built on May 29, 2024, 5:29 a.m.