toggle menu
nohorny
2.2.0
jvm
switch theme
search in API
nohorny
/
com.xpdustry.nohorny.geometry
/
Cluster
/
Block
Block
data
class
Block
<
T
:
Any
>
(
var
x
:
Int
,
var
y
:
Int
,
val
size
:
Int
,
val
payload
:
T
)
:
Rectangle
Members
Constructors
Block
Link copied to clipboard
constructor
(
x
:
Int
,
y
:
Int
,
size
:
Int
,
payload
:
T
)
Properties
h
Link copied to clipboard
open
override
val
h
:
Int
payload
Link copied to clipboard
val
payload
:
T
size
Link copied to clipboard
val
size
:
Int
w
Link copied to clipboard
open
override
val
w
:
Int
x
Link copied to clipboard
open
override
var
x
:
Int
y
Link copied to clipboard
open
override
var
y
:
Int
Functions
contains
Link copied to clipboard
open
fun
contains
(
x
:
Int
,
y
:
Int
)
:
Boolean
is
Adjacent
Or
Contains
Link copied to clipboard
open
fun
isAdjacentOrContains
(
other
:
Rectangle
)
:
Boolean
Returns whether the rectangle is adjacent or overlaps with the other.