Skip to contents

Calculates coordinates of the bounding box

Usage

coo_boundingbox(coo)

Arguments

coo

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

Value

data.frame with coordinates of the bounding box

Examples

bot[1] %>% coo_boundingbox()
#> # A tibble: 1 × 4
#>      x0    x1    y0    y1
#>   <dbl> <dbl> <dbl> <dbl>
#> 1    33   316    14  1102
bot %>% coo_boundingbox()
#> # A tibble: 40 × 4
#>       x0    x1    y0    y1
#>  * <dbl> <dbl> <dbl> <dbl>
#>  1    33   316    14  1102
#>  2    51   312    26  1020
#>  3    48   291    11   654
#>  4    90   277    16   822
#>  5    36   323    53   939
#>  6    58   298    11   617
#>  7    54   268     5   870
#>  8    40   292    25   790
#>  9    67   297    17   759
#> 10    40   307    21  1069
#> # ℹ 30 more rows