←Select platform

IntersectRects Method

Summary

Returns the intersection of the specified rectangles.

Syntax
C#
VB
Objective-C
C++
Java
public static LeadRectD IntersectRects( 
   LeadRectD rect1, 
   LeadRectD rect2 
) 
Public Shared Function IntersectRects( _ 
   ByVal rect1 As LeadRectD, _ 
   ByVal rect2 As LeadRectD _ 
) As LeadRectD 
LeadRectD LeadRectDIntersection(LeadRectD rect1, LeadRectD rect2) 
public static LeadRectD intersectRects(LeadRectD rect1, LeadRectD rect2) 
public: 
static LeadRectD IntersectRects(  
   LeadRectD rect1, 
   LeadRectD 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 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly