translation.matrix: 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)
Value
numeric 4x4 matrix, the translation matrix.
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.