intersectRects Method

Summary

Returns a LeadRectD that represents the intersection of two rectangles.

Syntax

JavaScript Syntax
intersectRects = function(rect1, rect2) 
TypeScript Syntax
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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly