Skip to contents

Good for making symmetrical arrowheads

Usage

reflecter(x, add_reflection = TRUE)

Arguments

x

matrix

add_reflection

add to x in reverse order

Value

a matrix with y reversed sign and rows in reverse order

Examples

reflecter(diag(c(1,2)))
#>      [,1] [,2]
#> [1,]    1    0
#> [2,]    0    2
#> [3,]    0   -2
#> [4,]    1    0