getCornerPoints Method

Summary

Gets the four corner points of a rectangle.

Syntax
TypeScript
JavaScript
getCornerPoints = function( 
   rect 
) 
static getCornerPoints( 
   rect: LeadRectD 
): LeadPointD[]; 

Parameters

rect

Source rectangle.

Return Value

Array of four points that define the corners of this rectangle.

Remarks

The resulting array contains the points in this order: top-left, top-right, bottom-right, and bottom-left.

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