as_transform3d() casts to a transform3d() affine transformation matrix
Usage
as_transform3d(x, ...)
# S3 method for class 'transform3d'
as_transform3d(x, ...)
# Default S3 method
as_transform3d(x, ...)Value
A transform3d() object
Examples
m <- diag(4L)
as_transform3d(m)
#> [,1] [,2] [,3] [,4]
#> [1,] 1 0 0 0
#> [2,] 0 1 0 0
#> [3,] 0 0 1 0
#> [4,] 0 0 0 1
#> attr(,"class")
#> [1] "transform3d" "at_matrix" "matrix" "array"
