←Select platform

IntersectRects Method

Summary
Returns the intersection of the specified rectangles.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public static LeadRectD IntersectRects( 
   LeadRectD rect1, 
   LeadRectD rect2 
) 
LeadRectD LeadRectDIntersection(LeadRectD rect1, LeadRectD rect2) 
public static LeadRectD intersectRects( 
   LeadRectD rect1, 
   LeadRectD rect2 
); 
public: 
static LeadRectD IntersectRects(  
   LeadRectD rect1, 
   LeadRectD rect2 
)  
def IntersectRects(self,rect1,rect2): 

Parameters

rect1
The first rectangle to compare

rect2
The second rectangle to compare

Return Value

The intersection of the two rectangles, or Empty if no intersection exists.

Remarks

If no intersection exists, the methods returns Empty.

Requirements

Target Platforms

Help Version 23.0.2024.5.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.