Skip to contents

Matrix Compose

Usage

matrix_compose(translation, rotation, scale)

Arguments

translation

A numeric vector of length 3.

rotation

A numeric vector of length 4.

scale

A numeric vector of length 3.

Value

A 4x4 numeric matrix

Examples

matrix_compose(c(0, 0, 0), c(0, 0, 0, 1), c(1, 1, 1))
#>      [,1] [,2] [,3] [,4]
#> [1,]    1    0    0    0
#> [2,]    0    1    0    0
#> [3,]    0    0    1    0
#> [4,]    0    0    0    1