Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

rectint (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the geometry class.

Syntax

rectint(a, b)

c = rectint(a, b)

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.

Examples

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

Related Topics

inpolygon


Resources


 

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