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 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly