BoundingBox interface {#boundingbox_interface}

An integer bounding box, axis aligned.

Signature:

export declare interface BoundingBox 

Properties

Property Modifiers Type Description
originX number The X coordinate of the top-left corner, in pixels.
originY number The Y coordinate of the top-left corner, in pixels.
width number The width of the bounding box, in pixels.
height number The height of the bounding box, in pixels.
angle number Angle of rotation of the original non-rotated box around the top left corner of the original non-rotated box, in clockwise degrees from the horizontal.

BoundingBox.originX {#boundingboxoriginx}

The X coordinate of the top-left corner, in pixels.

Signature:

originX: number;

BoundingBox.originY {#boundingboxoriginy}

The Y coordinate of the top-left corner, in pixels.

Signature:

originY: number;

BoundingBox.width {#boundingboxwidth}

The width of the bounding box, in pixels.

Signature:

width: number;

BoundingBox.height {#boundingboxheight}

The height of the bounding box, in pixels.

Signature:

height: number;

BoundingBox.angle {#boundingboxangle}

Angle of rotation of the original non-rotated box around the top left corner of the original non-rotated box, in clockwise degrees from the horizontal.

Signature:

angle: number;