Skip to contents

Returns the reverse suite of coordinates, i.e. change shape's orientation

Usage

coo_rev(coo)

Arguments

coo

matrix of (x; y) coordinates or any Coo object.

Value

a matrix of (x; y) coordinates or a Coo object

Examples

b <- coo_sample(bot[1], 4)
b
#>      [,1] [,2]
#> [1,]   37  561
#> [2,]  143   15
#> [3,]  295  523
#> [4,]  205 1101
coo_rev(b)
#>      [,1] [,2]
#> [1,]  205 1101
#> [2,]  295  523
#> [3,]  143   15
#> [4,]   37  561