GoudEngine TypeScript SDK
Preparing search index...
types/math.g
Rect
Class Rect
Axis-aligned rectangle
Implements
IRect
Index
Constructors
constructor
Properties
height
width
x
y
Methods
contains
intersects
Constructors
constructor
new
Rect
(
x
:
number
,
y
:
number
,
width
:
number
,
height
:
number
)
:
Rect
Parameters
x
:
number
y
:
number
width
:
number
height
:
number
Returns
Rect
Properties
height
height
:
number
width
width
:
number
x
x
:
number
y
y
:
number
Methods
contains
contains
(
p
:
IVec2
)
:
boolean
Parameters
p
:
IVec2
Returns
boolean
intersects
intersects
(
o
:
IRect
)
:
boolean
Parameters
o
:
IRect
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
height
width
x
y
Methods
contains
intersects
GoudEngine TypeScript SDK
Loading...
Axis-aligned rectangle