intersectRects Method

Summary

Returns a LeadRectD that represents the intersection of two rectangles.

Syntax
TypeScript
JavaScript
intersectRects = function( 
   rect1, 
   rect2 
) 
static intersectRects( 
   rect1: LeadRectD, 
   rect2: LeadRectD 
): LeadRectD; 

Parameters

rect1

A rectangle to intersect.

rect2

A rectangle to intersect

Return Value

A third LeadRectD the size of which represents the overlapped area of the two specified rectangles. If there is no intersection, an Empty rectangle is returned.

Requirements
Target Platforms
Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly

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