R/inBox.R

pathInBox =
function(path, box)
{
  b = apply(path, 2, range)

  all(box[1, 1] <= b[1 , 1], box[2, 1] >= b[2, 1],
      box[1, 2] <= b[1, 2], box[2, 2] >= b[2,2])
}
duncantl/SVGAnnotation documentation built on May 15, 2019, 5:57 p.m.