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 23.0.2024.2.29
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.