Skip to contents

Distance from points to bbquad walls

Usage

bbquad_distance(x, b, warn = TRUE)

Arguments

x

n x 3 matrix of locations

b

quadrilateral bounding box

warn

Emit a warning for points outside box? (default: TRUE)

Note: Returned distance will be negative if point outside the box.