Table of contents

Quadrilateral

The Quadrilateral interface represents a quadrilateral defined by four Points.

interface Quadrilateral {
    points: [Point, Point, Point, Point];
    area?: number;
    boundingRect?: DSRect;
}

points

An array of four Point objects defining the vertices of the quadrilateral.

area

The area of the quadrilateral.

boundingRect

The bounding rectangle of the quadrilateral, in type of DSRect.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: