translation.matrix: Create a 4x4 translation matrix.

View source: R/volume.R

translation.matrixR Documentation

Create a 4x4 translation matrix.

Description

Create the affine matrix which translates coordinates by the given offsets, for use with apply.transform.

Usage

translation.matrix(x = 0, y = 0, z = 0)

Arguments

x

numerical scalar, the translation along the first axis.

y

numerical scalar, the translation along the second axis.

z

numerical scalar, the translation along the third axis.

Value

numeric 4x4 matrix, the translation matrix.


fsbrain documentation built on Sept. 27, 2026, 1:07 a.m.