# Quadrilateral

The `Quadrilateral` interface represents a quadrilateral defined by four [Points](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/point.md).

```typescript
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](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/ds-rect.md).