From 9:00 AM - 12:00 PM CDT on Saturday, June 6th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

# rectintarea (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info

Owning Class: geometry

Requires: MathScript RT Module

## Syntax

rectintarea(a, b)

c = rectintarea(a, b)

Legacy Name: `rectint`

## Description

Calculates the common area shared by two rectangles. LabVIEW encodes the rectangles as four-element vectors that consist of the two corner elements (x, y) and (xlength, ylength). LabVIEW treats a negative xlength or a negative ylength as 0.

Examples

## Inputs

Name Description
a Specifies a real vector or matrix where each row consists of exactly four elements. The four elements represent the two corner elements (x, y) and (xlength, ylength) of a rectangle.
b Specifies a real vector or matrix where each row consists of exactly four elements. The four elements represent the two corner elements (x, y) and (xlength, ylength) of a rectangle.

## Outputs

Name Description
c Returns the common area of the rectangles you specify in a and b. If a and b are matrices, c returns a real matrix that contains the common areas of all rectangles you specify.

## Details

The following table lists the support characteristics of this function.

 Supported in the LabVIEW Run-Time Engine Yes Supported on RT targets Yes Suitable for bounded execution times on RT Not characterized

## Examples

C = rectintarea([0, 0, 1, 1], [0.5, 0.5, 1, 1])