Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Rect

Index

Constructors

constructor

  • new Rect(x: number, y: number, width: number, height: number): Rect

Properties

height

height: number

width

width: number

x

x: number

y

y: number

Accessors

center

  • get center(): [number, number]

maxX

  • get maxX(): number

maxY

  • get maxY(): number

Methods

clone

equals

  • equals(other: Rect): boolean

gap

  • gap(left: number, right: number, top: number, bottom: number): Rect

gap_mut

  • gap_mut(left: number, right: number, top: number, bottom: number): Rect

includes

  • includes(other: Rect): boolean

includesPoint

  • includesPoint(__namedParameters: [number, number]): boolean

subtract

toQRect

toString

  • toString(): string

Static fromQRect

Generated using TypeDoc