Index
Constructor Functions
Other Functions
Points Functions
Transform Functions
Constructor Functions
from
- from(x: number, y: number, width: number, height: number): Rectangle
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
fromBounds
- fromBounds(x1: number, y1: number, x2: number, y2: number): Rectangle
-
Parameters
-
x1: number
-
y1: number
-
x2: number
-
y2: number
fromPoints
-
Parameters
Other Functions
area
-
Parameters
Returns number
clone
-
Parameters
contains
-
Parameters
Returns boolean
equals
-
Parameters
Returns boolean
intersects
-
Parameters
Returns boolean
is
- is(value: any): value is Rectangle
-
Parameters
Returns value is Rectangle
Points Functions
bottomLeft
-
Parameters
bottomRight
-
Parameters
center
-
Parameters
topLeft
-
Parameters
topRight
-
Parameters
Transform Functions
translate
-
Parameters
Returns void
translated
-
Parameters
Creates a rectangle from x and y coordinates and a width and height.