Rect interface
A representation of a rectangle in a 2D space.
Signature:
export interface Rect
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
height | readonly | number | The height of the rectangle in pixels |
width | readonly | number | The width of the rectangle in pixels |
x | readonly | number | The position of the top left corner of the rectangle along the x-axis in pixels |
y | readonly | number | The position of the top left corner of the rectangle along the y-axis in pixels |
Rect.height property
The height of the rectangle in pixels
Signature:
readonly height: number;
Rect.width property
The width of the rectangle in pixels
Signature:
readonly width: number;
Rect.x property
The position of the top left corner of the rectangle along the x-axis in pixels
Signature:
readonly x: number;
Rect.y property
The position of the top left corner of the rectangle along the y-axis in pixels
Signature:
readonly y: number;
Updated 7 months ago