toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.geom.vector
/
PolygonScanline
/
Buckets
Buckets
class
Buckets
(
pool
:
Pool
<
PolygonScanline.Bucket
>
,
val
ySize
:
Int
)
Members
Constructors
Buckets
Link copied to clipboard
constructor
(
pool
:
Pool
<
PolygonScanline.Bucket
>
,
ySize
:
Int
)
Properties
size
Link copied to clipboard
val
size
:
Int
y
Size
Link copied to clipboard
val
ySize
:
Int
Functions
add
Thresold
Link copied to clipboard
fun
addThresold
(
edge
:
MEdge
,
threshold
:
Int
=
Int.MAX_VALUE
)
:
Boolean
clear
Link copied to clipboard
fun
clear
(
)
fast
For
Each
Y
Link copied to clipboard
inline
fun
fastForEachY
(
y
:
Int
,
block
:
(
edge
:
MEdge
)
->
Unit
)
get
For
Index
Link copied to clipboard
fun
getForIndex
(
index
:
Int
)
:
PolygonScanline.Bucket
get
For
YOr
Null
Link copied to clipboard
fun
getForYOrNull
(
y
:
Int
)
:
PolygonScanline.Bucket
?
get
Index
Link copied to clipboard
fun
getIndex
(
y
:
Int
)
:
Int