Interface Mbr

Minimum bounding rectangle of a mask.

interface Mbr {
    angle: number;
    aspectRatio: number;
    height: number;
    perimeter: number;
    points: Point[];
    surface: number;
    width: number;
}

Properties

angle: number

Angle between the rectangle and a horizontal line in radians.

aspectRatio: number

Ratio between width and height.

height: number

Height of the rectangle.

perimeter: number

Perimeter of the MBR.

points: Point[]

Vertices of the MBR in clockwise order.

surface: number

Surface of the MBR.

width: number

Width of the rectangle.