bbx_predicates: Predicate functions for matching bbxes

Description Usage Arguments Details Value Examples

Description

Predicate functions for matching bbxes

Usage

1
2
3
bbx_intersects(bbx, bbx2)

bbx_ovelaps(bbx, bbx2, direction = "x")

Arguments

bbx

character vector of bounding boxes to perform operation on

bbx2

optional character vector of bounding boxes to element-wise aggregation with 'bbx'. If specified, needs to be length 1 or equal in length to 'bbx'.

direction

by default x

Details

These functions can check intersection(non-empty intersection geometry) or horizontal/vertical overlap of segments.

Value

logical value

Examples

1
2
bbx_intersects("5 1 7 3", "2 2 6 8") # should return TRUE
bbx_ovelaps("100 100 200 200", "120, 220, 180, 240") # should be TRUE

dmi3kno/bbx documentation built on May 14, 2020, 9:08 p.m.