rotate2D: Rotate a 2D matrix in 90 degree steps.

View source: R/rotate3d.R

rotate2DR Documentation

Rotate a 2D matrix in 90 degree steps.

Description

Rotate a 2D matrix in 90 degree steps.

Usage

rotate2D(slice, degrees = 90)

Arguments

slice

a 2D matrix

degrees

integer, must be a (positive or negative) multiple of 90

Value

2D matrix, the rotated matrix


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