Learn R Programming

spatstat.geom (version 2.0-1)

intersect.boxx: Intersection Of Boxes Of Arbitrary Dimension

Description

Yields the intersection of boxes of arbitrary dimension (of class "boxx").

Usage

intersect.boxx(…, fatal=FALSE)

Arguments

Boxes (of class "boxx").

fatal

Logical. Determines what happens if the intersection is empty: If true

Value

A box (object of class "boxx") or possibly NULL.

Details

If the intersection is empty, then if fatal=FALSE the result is NULL, while if fatal=TRUE an error occurs.

See Also

intersect.owin, boxx

Examples

Run this code
# NOT RUN {
intersect.boxx(boxx(c(-1,1),c(0,2)), boxx(c(0,3),c(0,1)))
# }

Run the code above in your browser using DataLab