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