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

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

Signature:

originX: number;

BoundingBox.originY

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

Signature:

originY: number;

BoundingBox.width

The width of the bounding box, in pixels.

Signature:

width: number;

BoundingBox.height

The height of the bounding box, in pixels.

Signature:

height: number;

BoundingBox.angle

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;