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