UNPKG

519 BPlain TextView Raw
1import { Point } from "./point";
2
3/**
4 * A 2-dimensional quadrilateral shape given by its 4 corners, representing a barcode location.
5 * The polygon has an orientation given by the specific corner types.
6 */
7export interface Quadrilateral {
8 /**
9 * The top-left corner.
10 */
11 readonly topLeft: Point;
12 /**
13 * The top-right corner.
14 */
15 readonly topRight: Point;
16 /**
17 * The bottom-right corner.
18 */
19 readonly bottomRight: Point;
20 /**
21 * The bottom-left corner.
22 */
23 readonly bottomLeft: Point;
24}