toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.segment
/
IntSegmentSet
Int
Segment
Set
class
IntSegmentSet
Non-overlapping SegmentSet
Members
Constructors
Int
Segment
Set
Link copied to clipboard
constructor
(
)
Properties
max
Max
Link copied to clipboard
val
maxMax
:
Int
min
Min
Link copied to clipboard
val
minMin
:
Int
size
Link copied to clipboard
val
size
:
Int
Functions
add
Link copied to clipboard
fun
add
(
other
:
IntSegmentSet
)
:
IntSegmentSet
fun
add
(
min
:
Int
,
max
:
Int
)
:
IntSegmentSet
clear
Link copied to clipboard
fun
clear
(
)
:
IntSegmentSet
clone
Link copied to clipboard
fun
clone
(
)
:
IntSegmentSet
contains
Link copied to clipboard
operator
fun
contains
(
v
:
Int
)
:
Boolean
copy
From
Link copied to clipboard
fun
copyFrom
(
other
:
IntSegmentSet
)
:
IntSegmentSet
fast
For
Each
Link copied to clipboard
inline
fun
fastForEach
(
block
:
(
n
:
Int
,
min
:
Int
,
max
:
Int
)
->
Unit
)
fast
For
Each
Interesting
Range
Link copied to clipboard
inline
fun
fastForEachInterestingRange
(
min
:
Int
,
max
:
Int
,
block
:
(
n
:
Int
,
x1
:
Int
,
x2
:
Int
)
->
Unit
)
find
Left
Bound
Link copied to clipboard
fun
findLeftBound
(
x
:
Int
)
:
Int
find
Near
Index
Link copied to clipboard
fun
findNearIndex
(
x
:
Int
)
:
BSearchResult
find
Right
Bound
Link copied to clipboard
fun
findRightBound
(
x
:
Int
)
:
Int
intersection
Link copied to clipboard
inline
fun
intersection
(
min
:
Int
,
max
:
Int
,
out
:
(
min
:
Int
,
max
:
Int
)
->
Unit
)
:
Boolean
is
Empty
Link copied to clipboard
fun
isEmpty
(
)
:
Boolean
is
Not
Empty
Link copied to clipboard
fun
isNotEmpty
(
)
:
Boolean
set
To
Intersect
Link copied to clipboard
fun
setToIntersect
(
a
:
IntSegmentSet
,
b
:
IntSegmentSet
)
:
IntSegmentSet
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String