System.Types.TRect.Intersect
Delphi
class function Intersect(const R1: TRect; const R2: TRect): TRect; overload; static;
procedure Intersect(const R: TRect); overload;
C++
inline TRect TRect::Intersect(const TRect &r1, const TRect &r2) {
inline void TRect::Intersect(const TRect &r) {
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Types.pas SystemTypes.h |
System.Types | TRect |
Description
Calculates the intersection between two rectangles.
Intersect calculates the intersection between two rectangles and returns a TRect object, which is the area the two rectangles have in common.