Blockbench Reference Docs
Preparing search index...
custom/util
Rectangle
Class Rectangle
Index
Constructors
constructor
Properties
area
end_
x
end_
y
h
height
start
start_
x
start_
y
w
width
Methods
expand
To
from
Coords
from
Unordered
Coords
Constructors
constructor
new
Rectangle
(
start_x
:
number
,
start_y
:
number
,
width
:
number
,
height
:
number
,
)
:
Rectangle
Parameters
start_x
:
number
start_y
:
number
width
:
number
height
:
number
Returns
Rectangle
Properties
Readonly
area
area
:
number
end_
x
end_x
:
number
end_
y
end_y
:
number
Readonly
h
h
:
number
height
height
:
number
Readonly
start
start
:
ArrayVector2
start_
x
start_x
:
number
start_
y
start_y
:
number
Readonly
w
w
:
number
width
width
:
number
Methods
expand
To
expandTo
(
x
:
number
,
y
:
number
)
:
void
Parameters
x
:
number
y
:
number
Returns
void
from
Coords
fromCoords
(
x1
:
number
,
y1
:
number
,
x2
:
number
,
y2
:
number
)
:
void
Parameters
x1
:
number
y1
:
number
x2
:
number
y2
:
number
Returns
void
from
Unordered
Coords
fromUnorderedCoords
(
x1
:
number
,
y1
:
number
,
x2
:
number
,
y2
:
number
)
:
void
Parameters
x1
:
number
y1
:
number
x2
:
number
y2
:
number
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
area
end_
x
end_
y
h
height
start
start_
x
start_
y
w
width
Methods
expand
To
from
Coords
from
Unordered
Coords
Blockbench Reference Docs
Loading...