@turbowarp/types-tw
Preparing search index...
scratch-render
RenderWebGL
Rectangle
Interface Rectangle
interface
Rectangle
{
bottom
:
number
;
height
:
number
;
left
:
number
;
right
:
number
;
top
:
number
;
width
:
number
;
clamp
(
left
:
number
,
right
:
number
,
bottom
:
number
,
top
:
number
)
:
void
;
contains
(
other
:
Rectangle
)
:
boolean
;
initFromBounds
(
left
:
number
,
right
:
number
,
bottom
:
number
,
top
:
number
,
)
:
void
;
initFromModelMatrix
(
matrix4x4
:
number
[]
)
:
void
;
initFromPointsAABB
(
points
:
[
number
,
number
]
[]
)
:
void
;
intersects
(
other
:
Rectangle
)
:
boolean
;
snapToInt
()
:
void
;
}
Index
Properties
bottom
height
left
right
top
width
Methods
clamp
contains
init
From
Bounds
init
From
Model
Matrix
init
From
Points
AABB
intersects
snap
To
Int
Properties
bottom
bottom
:
number
height
height
:
number
left
left
:
number
right
right
:
number
top
top
:
number
width
width
:
number
Methods
clamp
clamp
(
left
:
number
,
right
:
number
,
bottom
:
number
,
top
:
number
)
:
void
Parameters
left
:
number
right
:
number
bottom
:
number
top
:
number
Returns
void
contains
contains
(
other
:
Rectangle
)
:
boolean
Parameters
other
:
Rectangle
Returns
boolean
init
From
Bounds
initFromBounds
(
left
:
number
,
right
:
number
,
bottom
:
number
,
top
:
number
)
:
void
Parameters
left
:
number
right
:
number
bottom
:
number
top
:
number
Returns
void
init
From
Model
Matrix
initFromModelMatrix
(
matrix4x4
:
number
[]
)
:
void
Parameters
matrix4x4
:
number
[]
Returns
void
init
From
Points
AABB
initFromPointsAABB
(
points
:
[
number
,
number
]
[]
)
:
void
Parameters
points
:
[
number
,
number
]
[]
Returns
void
intersects
intersects
(
other
:
Rectangle
)
:
boolean
Parameters
other
:
Rectangle
Returns
boolean
snap
To
Int
snapToInt
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
bottom
height
left
right
top
width
Methods
clamp
contains
init
From
Bounds
init
From
Model
Matrix
init
From
Points
AABB
intersects
snap
To
Int
@turbowarp/types-tw
Loading...