Description Usage Arguments Details Value See Also Examples

Calculates the area of intersection of rectangles, specified by position
vectors `x`

and `y`

.

1 | ```
rectint(x, y)
``` |

`x, y` |
both vectors of length 4, or both matrices with 4 columns. |

Rectangles are specified as position vectors, that is `c(x[1],x[2])`

is the lower left corner, `x[3]`

and `x[4]`

are width and height
of the rectangle. When `x`

and `y`

are matrices, each row is
assumed to be a position vector specifying a rectangle.

Returns a scalar if `x`

and `y`

are vectors. If `x`

is
a `n-by-4`

and `y`

a `m-by-4`

matrix, then it returns
a `n-by-m`

matrix `R`

with entry `(i,j)`

being the area
`rectint(x[i,], y[j,])`

.

1 2 3 4 |

pracma documentation built on May 19, 2017, 8:50 a.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.