BoundingBox interface

An integer bounding box, axis aligned.

Signature:

export declare interface BoundingBox 

Properties

Property Type Description
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.
height number The height of the bounding box, in pixels.
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.

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;

BoundingBox.height

The height of the bounding box, in pixels.

Signature:

height: number;

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;