sfml.js
Preparing search index...
Rect
Class Rect<Vector_T>
Type Parameters
Vector_T
Hierarchy (
View Summary
)
Rect
IntRect
FloatRect
Index
Constructors
constructor
Properties
height
left
top
width
Methods
contains
intersects
Constructors
constructor
new
Rect
<
Vector_T
>
(
left
:
number
,
top
:
number
,
width
:
number
,
height
:
number
,
)
:
Rect
<
Vector_T
>
Type Parameters
Vector_T
Parameters
left
:
number
top
:
number
width
:
number
height
:
number
Returns
Rect
<
Vector_T
>
new
Rect
<
Vector_T
>
(
position
:
PointType
<
Vector2I
>
,
size
:
PointType
<
Vector2I
>
,
)
:
Rect
<
Vector_T
>
Type Parameters
Vector_T
Parameters
position
:
PointType
<
Vector2I
>
size
:
PointType
<
Vector2I
>
Returns
Rect
<
Vector_T
>
Properties
height
height
:
number
left
left
:
number
top
top
:
number
width
width
:
number
Methods
contains
contains
(
x
:
number
,
y
:
number
)
:
boolean
Parameters
x
:
number
y
:
number
Returns
boolean
contains
(
point
:
PointType
<
Vector_T
>
)
:
boolean
Parameters
point
:
PointType
<
Vector_T
>
Returns
boolean
intersects
intersects
(
rect
:
Rect
<
Vector_T
>
)
:
false
|
Rect
<
Vector_T
>
Parameters
rect
:
Rect
<
Vector_T
>
Returns
false
|
Rect
<
Vector_T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
height
left
top
width
Methods
contains
intersects
sfml.js
Loading...