JCL Help:RectIntersection

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Calculates the intersection of two rectangles.


Pascal

 function RectIntersection(const R1: TRect; const R2: TRect): TRect;


Parameters

Parameters Description
const R1: TRect The first rectangle.
const R2: TRect The second rectangle.


Return Value

The intersection of the two rectangles. If the two rectangles don't intersect a null rectangle is returned.


Description

RectIntersection returns the intersection of the two supplied rectangles. The intersection is that part of the rectangles that overlap, or the part that is shared by the two rectangles.


See Also

RectIntersectRect


About

Unit

JclGraphUtils


Donator

Pelle F. S. Liljendal


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page