Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

rectintarea (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

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])

Related Topics

is_inpolygon


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit